Questions tagged [google-api-client]

**[DO NOT USE THIS TAG]** Please use the language specifying tag for your question instead of this tag.

Please use the language specifying tag for your question instead of this tag.

Below is the original wiki for this tag.

This is an obsolete tag used for an android sdk that no longer exists.

The GoogleApiClient The main entry point for Google Play services integration

Documentation can be found here.

1581 questions
13
votes
2 answers

Insufficient authentication scopes error using Google API

I set up Google SDK to use Google API with Application Default Credentials. For my local machine, created a credentials json file and set its path as GOOGLE_APPLICATION_CREDENTIALS as environment variable. This is worked as expected without a…
13
votes
3 answers

nodejs googleapis, authClient.request is not a function

I am creating an oauth2client in one function like so and returning it. I actually do pass in the clien id, secret, redirect url, and credentials. Those are all correct from what I have checked. var OAuth2 = google.auth.OAuth2; var oauth2Client =…
13
votes
3 answers

Android - Google Login with Login-Screen instead of Automatic Login

I've added a Google log-in to my Android App (steps can be found at edit 3 of this post). Everything works as it should, but I'd like to make some small adjustments. With the current code found at edit 3, you are automatically logged in every time…
13
votes
6 answers

Google Drive API: list files with no parent

The files in Google domain that I administer have gotten into a bad state; there are thousands of files residing in the root directory. I want to identify these files and move them to a folder underneath "My Drive". When I use the API to list the…
FishesCycle
  • 1,011
  • 1
  • 10
  • 24
12
votes
2 answers

Background Location updates using Google API - Fused Location Provider not accurate

I have been working and testing on background location updates using GoogleApiClient for Interval and Displacement based updates. On testing and analyzing for a few days I figured out some variations in the output which I did not expect. While…
Joshua
  • 1,167
  • 1
  • 14
  • 32
12
votes
4 answers

How to use the node google client api to get user profile with already fetched token?

Getting a user profile info through curl curl -i https://www.googleapis.com/userinfo/v2/me -H "Authorization: Bearer a-google-account-access-token" Getting a user profile info through node https get request const https = require('https'); function…
s-hunter
  • 24,172
  • 16
  • 88
  • 130
12
votes
2 answers

"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."

I am trying to use the following API to download reviews for Android Apps. https://developers.google.com/android-publisher/api-ref/reviews But it requires authentication. So I followed the instructions that were linked in the link above. I was able…
12
votes
2 answers

Google Sheets API: How to "publish to web" for embeddable sheet?

If I wanted to publish a Google Sheets spreadsheet so I could embed it on a page within an iframe, I would manually do the following: Navigate to Google Drive Open a spreadsheet File > Publish To Web > Embed > Copy the generated iframe link into an…
12
votes
3 answers

Getting 'E/TokenRequestor: You have wrong OAuth2 related configurations. Detailed error: INVALID_AUDIENCE' even after providing accurate client IDs

I have provided GoogleSignIn option in my app. Here's my code: public class SignupActivity extends AppCompatActivity { private static final int RC_SIGN_IN = 1; GoogleApiClient mGoogleApiClient; FirebaseAuth mAuth; TextView appName; …
12
votes
1 answer

how to store google oauth token in django : Storage or database

The Google APIs python client has special support for the Django and in the examples given by Google (https://developers.google.com/api-client-library/python/guide/django), the class oauth2client.django_orm.Storage is used to store and retrieve…
12
votes
2 answers

Using GoogleApiClient + LocationServices not updating

I'm just trying to do a simple 'tutorial' app to get my phone's location (to learn how to use it later in some other app) but I'm just not getting anywhere. What I've done Android Developer's tutorial : First of, I followed the tutorial in the…
12
votes
4 answers

getting "invalid_client" error in sample gdata-objectivec-client

Hey I have just downloaded and built the youtube sample project from http://code.google.com/p/gdata-objectivec-client/source/checkout The application builds fine and I have entered the client id and secret. Then when I log in with my youtube account…
Rob
  • 121
  • 1
  • 3
11
votes
5 answers

How do I retrieve Google Analytics report data using v3 of their .NET api?

I've been trying to retrieve Google analytics reports using their provided .NET api and have really been scratching my head over how I actually retrieve anything using the newest version, v3, which is available here:…
pantryfight
  • 338
  • 1
  • 3
  • 13
11
votes
2 answers

How to use scoped APIs with (GSI) Google Identity Services

Google recently sent me an email with the following: One or more of your web applications uses the legacy Google Sign-In JavaScript library. Please migrate your project(s) to the new Google Identity Services SDK before March 31, 2023 The project…
11
votes
4 answers

"The current user has insufficient permissions to perform the requested operation.” - Google Play Developer API

I am having trouble calling the Google Play Developer API. I have followed all steps listed on https://developers.google.com/android-publisher/authorization . This includes Create Project and enabled Google Play Android Developer API (with my…
vicki
  • 225
  • 2
  • 10