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
26
votes
4 answers

Google Auth API Javascript idpiframe initialization error on Chrome

I use GSuite and I'm coding a very simple web app to use Google Auth API, and I get an exception "idpiframe_initialization_failed". Now I have the exact HTML as shown in the google…
25
votes
1 answer

Where to find credentials.json for Google API client?

The Google Calender Node.js example requires a file called "credentials.json": https://developers.google.com/calendar/quickstart/nodejs Relevant code: // Load client secrets from a local file. fs.readFile('credentials.json', (err, content) => { if…
Foobar
  • 7,458
  • 16
  • 81
  • 161
25
votes
2 answers

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake while inserting rows in bigquery

Hi I am working on android app in which I have integrated bigquery. I see sometimes we are getting a lot of SSL exceptions while inserting data to big query tables. I don't know how to handle this . Please help what exactly is the cause of this…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
25
votes
4 answers

using enableAutoManage() in fragment

Is there another way to connect Google API client? I use auto complete places and I have to use this code some where in MYFRAGMENT mGoogleApiClient = new GoogleApiClient.Builder(MainActivity.this) .addApi(Places.GEO_DATA_API) …
23
votes
5 answers

How to reset google oauth 2.0 authorization?

I'm using Google APIs Client Library for JavaScript (Beta) to authorize user google account on web application (for youtube manipulations). Everything works fine, but i have no idea how to "logout" user from my application, i.e. reset access…
ZavtraMen
  • 323
  • 1
  • 2
  • 7
22
votes
2 answers

GoogleUser.getAuthResponse() doesn't contain access_token

UPDATE2: I revisited this issue and have solved the problem by carefully following the doco linked below. But first, for those who are struggling with this, you are in good company. There are so many versions of the doco from Google it is confusing!…
Simon Hutchison
  • 2,949
  • 1
  • 33
  • 32
22
votes
4 answers

Is it possible to be able to correctly select any available Google account to use when using authorisation via the JS client library for Drive?

I've got an existing Google Drive enabled application that's using the Google Java client library and server flow auth. If you're not logged into the application and navigate to the URL AND you have logged into more than one google account on that…
21
votes
5 answers

Google sign in and sign out in android using g-plus latest API

I have gone through some of the stackoverflow questions related to sign-in and sign-out of google plus. And most of them are outdated. I am not able to achieve what I actually want. Once I have sign-out, the next time I sign-in, I would like the…
21
votes
2 answers

GoogleApiClient onConnectionSuspended , should i call mGoogleApiClient.connect() again?

I am using GoogleApiClient in a service to request fused location updates. Every thing is working correctly, but sometimes the connection is suspended and onConnectionSuspended is called. @Override public void onCreate() { ... …
Tourki
  • 1,785
  • 15
  • 22
20
votes
2 answers

SecurityException: Not allowed to start service Intent act=com.google.android.c2dm.intent.REGISTER

I get the error SecurityException: Not allowed to start service Intent but looks like it do not have good solution after searching many topics. Please help me, Thanks, p/s : I'm make sure I used correct SENDER_ID as project number was defined at…
19
votes
3 answers

Using Google OAuth on localhost

I started to use OAuth with Python and Django. I need it for Google APIs. I working on localhost, so I can't register a domain for url-callback. I've read about that Google OAuth could be used with anonymous domain. Can't find, how and where I can…
I159
  • 29,741
  • 31
  • 97
  • 132
18
votes
2 answers

How to use GoogleAPIClient (deprecated) with SMSRetriver API in Android

I am trying to implement SMS Retriever API for SMS verification. The official way mentioned in the documentation says to use GoogleApiClient along with HintRequest to retrieve the mobile number from the device HintRequest hintRequest = new…
18
votes
3 answers

What is the new generated code "This was auto-generated to implement the App Indexing API."?

Background I just created a new POC today (about activity transitions, but this isn't the topic), and I've noticed a new line being written in the "onCreate" method of the main activty: // ATTENTION: This was auto-generated to implement the App…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
18
votes
6 answers

Google Api Client sometime NULL in onConnected

I implement GoogleApiClient as bellow: mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, 0 /* clientId */, this) .addApi(LocationServices.API) .addApi(Places.GEO_DATA_API) …
quangson91
  • 1,044
  • 1
  • 16
  • 30
18
votes
1 answer

Is there an URL to open the Gmail compose window with a specific message ID in full-screen (pop-out)

I use the new Gmail API to create a draft for my user. The API response provides the newly created message ID. I can then open the compose window with the URLhttps://mail.google.com/mail/#drafts?compose=[message-id]. However I would like to open a…
cao
  • 997
  • 9
  • 17