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
7
votes
1 answer

How to add a dropdown list to google sheet using Google Sheets API python

Using Google Sheets API python How to add a dropdown list to google sheet with list items [YES. NO, MAYBE] for an invite asking friends if they will attend an event. I looked at google developer sheets api documentation HERE and no example was…
mongotop
  • 7,114
  • 14
  • 51
  • 76
7
votes
1 answer

Android Activity is Restarting Itself

I am making an app in which one of the features, the users location is updated once every 10 seconds. So far the app is not updating it's location because the activity is paused and restarted before the location is retrieved. I don't understand why…
law
  • 163
  • 2
  • 10
7
votes
2 answers

GoogleNetHttpTransport.newTrustedTransport() returning Null

I'm trying to load Google credential from json file. So before that, I knew, we have to get the default Google transport. Ref from. But it always gives null. Is anybody faced this issue? This is my snippet: try { JSON_FACTORY = …
Mani
  • 17,549
  • 13
  • 79
  • 100
7
votes
3 answers

Google Sheet API batch update issue iOS

Am trying to do a batch update with google sheet API for iOS but am getting an error invalid value at 'data[0].values[0]' (type.googleapis.com/google.protobuf.ListValue), here is my code NSString *baseUrl =…
7
votes
2 answers

Check whether the user is already logged in using Auth.GoogleSignInApi?

I fount that in order to sign in the user I have to use this code: Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient); startActivityForResult(signInIntent, RC_SIGN_IN); to signout new ResultCallback() { …
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
7
votes
2 answers

Google account get Token

I have a problem with kitkat api while tringy to get access token of google account services, google music in my case. So, if user trying get token at first by using next method: public String getAuthToken(Account account) throws…
smail2133
  • 936
  • 2
  • 7
  • 24
7
votes
4 answers

Google calendar v3 returns 403 Insufficient Permission

I've been trying to access Calendar v3 API with a service account. I have already added the scope https://www.googleapis.com/auth/calendar from the admin console and shared my calendar with that service account's email address. I have also been…
7
votes
1 answer

bug in google drive SDK JS api (TypeError: Cannot read property 'sl' of undefined)

A few weeks ago we started noticing strange errors from the google client API or google drive JS api (not sure which, the URL reference is below), they have increased in frequency over the last few days TypeError: Cannot read property 'sl' of…
7
votes
1 answer

Google authentication javascript

I'm trying to do a implementation of the google login on our website. I have read the documentation and setup a application on the apis console. I prefer that the signup dialogue is shown in a popup and after the users logins in and accepts the…
6
votes
3 answers

Samples for the AndroidPublisher (V3) Google API Client Library for Java

I am upgrading AndroidPublisher library from v1 to v3 for my secure backend server. AndroidPublisher library (v3) will allows me to do server side purchase validation and acknowledgement for in-app purchases and subscription securely. Existing code…
Roy
  • 673
  • 11
  • 21
6
votes
1 answer

API Discovery Service return error only in BigQuery

API Discovery Service of BigQuery had worked well, but recently it suddenly returns error. NG https://www.googleapis.com/discovery/v1/apis/bigquery/v2/rest?fields=kind OK https://www.googleapis.com/discovery/v1/apis/bigquery/v2/rest OK…
6
votes
3 answers

NameError: name 'drive_service' is not defined Google API

I want to upload a photo to google drive. I can read the files that are on the drive. But when I ad the uploading part, from line 49 to 55, I keep getting the same error. I keep getting the error "NameError: name 'drive_service' is not defined" I…
Bjarne Glorieus
  • 71
  • 1
  • 1
  • 3
6
votes
1 answer

Google OAuth2 API. Check user has two factor authentication (Not GSuite)

I use scopes: https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email but result data of: https://www.googleapis.com/oauth2/v1/userinfo https://www.googleapis.com/oauth2/v3/tokeninfo not contains info…
arturgspb
  • 1,004
  • 1
  • 12
  • 19
6
votes
1 answer

Retrieving information about a contact with Google People API (Java)

I am using an example of recently released Google's People API from here. I have extended a sample a bit to display additional information about the contact such as an email address and a phone number. The code that should do the job is presented…
foma
  • 457
  • 1
  • 7
  • 22
6
votes
1 answer

Using googleapiclient to send an email draft by Id

I'm using google's API client to interact with the Gmail API. Assuming I have a draft's immutable ID, I'd like to send the associated draft. I tried: service.users().drafts().send( userId='me', id=draft_id).execute(http=http) Here draft_id is…
mgilson
  • 300,191
  • 65
  • 633
  • 696