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

GoogleApiClient: not firing onConnected or onConnectionFailed

So, I'm trying to get my last location using GoogleApiClient. I'm executing a connect statement, but onConnected is not firing, nor is onConnectionFailed firing. Any ideas? Remark: I'm running this on an emulator, not a real device. Browsing on the…
9
votes
2 answers

GoogleApiClient connect always fails first time but gets successful second time

I have a google plus login set up for app through GoogleApiClient. Whenever the app is installed first time and tries to make connection through GoogleApiClient it never gets successful and always end up at onConnectionFailed with result…
Maven
  • 14,587
  • 42
  • 113
  • 174
9
votes
1 answer

pull queues authorization from compute

I'm trying to access a pull queue from google compute with the compute OAuth token using python from oauth2client import gce from apiclient.discovery import build import httplib2 credentials = gce.AppAssertionCredentials('') http =…
8
votes
1 answer

How to upload Android and Android TV APK to Google Play via Google Play API

Background Android application has 2 version: 1 for mobile devices, 1 for Android TV. Android TV APK version code should be significantly higher than mobile devices Android APK version code. APK for mobile devices has version codes like 10, 11, 12,…
8
votes
1 answer

Location Updates with FusedLocationProviderClient produces memory leaks

I can't understand why this very simple activity produces memory leaks. It follows the guidelines given here: https://developer.android.com/training/location/receive-location-updates.html and the example code given here:…
8
votes
5 answers

Caused by: java.lang.IllegalStateException: GoogleApiClient is not connected yet

I am getting this error message when trying to implement logout for Google Sign-In for Android: Caused by: java.lang.IllegalStateException: GoogleApiClient is not connected yet. The crash occurs in DrawerActivity.java (below), where I call the…
VIN
  • 6,385
  • 7
  • 38
  • 77
8
votes
3 answers

Android GoogleAPIClient - NoClassDefFoundError: com/google/android/gms/internal/zzsa

I'm developing an app that uses GoogleAPIClient to (obviously) get the user current location in background. For this task I use IntentService with WakefulBroadcastReceiver (to get the location every hour). Everything was working fine on development…
Elvis Oliveira
  • 941
  • 2
  • 15
  • 29
8
votes
2 answers

How to change the google API "service account" name/email address

I am using the Google API to create a spreadsheet on google drive. My app has a link that says 'Download To Google Doc' The app sends a file to google docs and shares it with the user. The user can then see it in google docs. This all works good.…
8
votes
4 answers

Get all email addresses of user using Google API

For my own gmail account, I have multiple email addresses associated with it. For example, I have an email address from my university that is associated with my gmail, and I can send emails from my gmail as if they are coming from my university…
new name
  • 15,861
  • 19
  • 68
  • 114
8
votes
1 answer

Google Tasks API: 403 Forbidden, Serving Limit Exceeded

Hello Google Tasks API team, Since a couple of days ago we've started getting "403 Forbidden" for many of our users. Can you please check what is going on? Our API console is clean, #calls are way bellow quotas. Caused by:…
user346648
8
votes
3 answers

Rails, OmniAuth, google_oauth2, google-api-client, Moments.insert... 401 unauthorized... why?

I haven't been able to find an answer to this online -- aside from using the Google+ Sign In button, which I don't want to use at this point because I don't want to get into Javascript if I don't have to. I have a Ruby on Rails application (ruby…
8
votes
2 answers

Using OAuth2 with service account on gdata in python

I want to use data.photos.service.PhotosService to push and pull photos from Picasa. I got a service key file XXXXXXXX-privatekey.p12 from Google console and am now trying to authenticate using said key with google. The documentation for OAUTH2…
Nielsvh
  • 1,151
  • 1
  • 18
  • 31
7
votes
1 answer

HttpError 403 with CONSUMER_INVALID as the reason when deploying a machine learning model to Google cloud's AI platform

I am following the tutorial here (https://cloud.google.com/ai-platform/training/docs/training-jobs#python_1) and using Python to deploy a machine learning model to Google cloud for training. However, I got HttpError 403: "Permission denied on…
7
votes
1 answer

Google Doc Api : download inline object

I'm creating a Google Doc to HTML converter, I want to use the Doc Api and not export it as HTML using the Drive Api : $service = new Google_Service_Docs($client); $request = $service->documents->get($docId); $elements =…
7
votes
1 answer

Why does google-api-client depend on guava-jdk5?

I have a dependency on Guava in my Maven dependencies: com.google.guava guava 23.3-jre I also have a dependency to Google API Client in my…