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

com.google.a.a.a.a.l 400 Bad Request { "error" : "invalid_grant" } while inserting row in bigquery

Hi I am working on an android app in which I have integrated BigQuery. I am getting lots of exceptions when inserting records in BigQuery tables. I am not an expert in this so it would be great if you guys could help me on this. 1. Error log …
N Sharma
  • 33,489
  • 95
  • 256
  • 444
4
votes
0 answers

Confused about GoogleApiClient argument: clientId

mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, 0 /* clientId */, this) .addApi(Places.GEO_DATA_API) .build(); I am a little bit confused about the clientId here. I went to the…
4
votes
2 answers

How to sign out of a Google Drive account?

How do I log out of the Google Drive service? I do not want to switch accounts but to log out definitively. I am working on an app that will use the user's Google Drive storage among other storage services. Therefore I need to allow the user to sign…
Xavi Gil
  • 11,460
  • 4
  • 56
  • 71
4
votes
1 answer

Why blockingConnect method of GoogleApiClient returns ConnectionResult.CANCELED?

Why blockingConnect method of GoogleApiClient returns ConnectionResult.CANCELED while during the same call I get ConnectionResult.SIGN_IN_REQUIRED from OnConnectionFailedListener? I think that blockingConnect method should return the same…
4
votes
1 answer

What is permissionId in Google API?

I am trying to replicate the JavaScript client library example shown on https://developers.google.com/drive/v2/reference/permissions/update#examples. There is a reference to permissionId. How do I get this, I've looked everywhere, and my assumption…
kuanb
  • 1,618
  • 2
  • 20
  • 42
4
votes
2 answers

Use Google Drive Api in Laravel 5

I'm a newbie in Laravel, and surely this question has an obvious answer, but I've not been able to connect Laravel 5 with Google Api. I have install the Api with composer like always, and it is in my vendor folder, but now I'm not sure how to use…
user3592436
  • 461
  • 2
  • 4
  • 13
4
votes
0 answers

Google Developer Console API Project page "Failed to load"

For a few hours now I've been having trouble getting onto my API Project's pages to access my API information and enable/disable some API's. The problem is, the pages are loading incredibly slow and eventually spew out: "Failed to load", thus not…
Redna
  • 63
  • 1
  • 5
4
votes
1 answer

Google API client not connecting again after onConnectionSuspended(int Cause) called

I have seen this question on OnConnecctionSuspended() call back. StackOverflow Question I have an activity where I'm trying to track the KMs traveled from origin to destination when a user clicks a start button (origin) and then clicks stop button…
Jerokdeep
  • 121
  • 13
4
votes
1 answer

how to unit test an Activity using google-api-client

I'm developing an Android app and I'm wondering how to unit test an Activity or a Service using GoogleApiClient. For instance, how to test an Activity or Service in the case GooglePlayService is available and in the case it is unavailable ? I was…
Antoine Fontaine
  • 792
  • 7
  • 16
4
votes
2 answers

How to use Python to create a Google calendar event through API v3

The following official page gives an example on how to create an event with Python. https://developers.google.com/google-apps/calendar/v3/reference/events/insert#examples The code they gave is listed below: event = { 'summary': 'Appointment', …
4
votes
2 answers

Verify Id Token In Android Backend Call to Python

As explained here, I am trying to verify a token that is passed, by an Android app, to a server running python3. I want to verify the passed token. The trouble is that I am running python3 on the server which is not supported by the…
4
votes
1 answer

Google Cloud Datastore Console - Service Unavailable 503

I am working on a Google Datastore integration and I have the following issue with Google's console. I have another Datastore project that is working correctly. I just dont understand why it returns 503 Service Unavailable. I created the project via…
4
votes
1 answer

GoogleApiClient.isConnected() returns true in airplane mode

We're experiencing the following behavior which doesn't seem to make sense: An attempt to connect an instance of GoogleApiClient succeeds and calling isConnected() in our instance of GoogleApiClient returns true even when it's clear that the client…
4
votes
0 answers

Sending gapi access_token to server

When using Googles JavaScript API to auth a user, I would like to send the access_token to the server, and continue grabbing information using the access_token retrived by the JavaScript API. gapi.auth.authorize({client_id: clientId, scope: scopes,…
Robin
  • 187
  • 1
  • 10
4
votes
2 answers

Reports API 503 Backend Error

For the past couple of weeks the batch task I use to retrieve User Usage Reports from the Reports API has been failing with the following response: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 OK { "code" : 503, …