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

What is the OAuth scope for the Google Translation API?

Surely someone else is using the API, I've looked and searched, I cannot seem to find the correct value to place for the scope parameter when authenticating: I've looked at all these scope lists, nothing, tried the OAuth 2.0 playground, translation…
5
votes
1 answer

Is there a way to support multiple Google Accounts when authorizing using the JS client API library on Safari on iOS 6?

On our site http://www.draw.io/ in the top right there's a Google Drive integration button that uses the JS API client library to authorize. This works fine everywhere, except for Safari on iOS 6. When clicking on it a new tab flicks up briefly then…
Frodo Baggins
  • 8,290
  • 6
  • 45
  • 55
5
votes
5 answers

How can I format a Google Sheets spreadsheet cell with the API?

My application generates a table of data and creates a new spreadsheet document in a user's Google Drive. How can I add formatting (color, font-weight, width, etc.) to individual cells? I can't seem to find any documentation, much less how I could…
4
votes
2 answers

Ruby example to access google shopping api using GAN publisher id

I was wondering if anyone could provide an example of how to pull products from the Google Shopping API using a GAN publisher ID and ruby (google-api-ruby-client). I'm gathering you need to authenticate using oauth. The documentation is very sparse…
seogrady
  • 261
  • 2
  • 14
4
votes
4 answers

Why does Google's Custom Search API say that I'm missing an access token when using the Ruby client?

I'm trying to use Google's Custom Search API through the Google API Ruby client. I have setup my API key through the Google API console, and have also created my CSE. Based on the documentation, it seems that, as long as I provide an API key (which…
Seb B.
  • 69
  • 1
  • 5
4
votes
2 answers

Google Analytics: User does not have sufficient permissions for this profile

I am unable to access the Google Analytics API from rails. I keep getting insufficient permissions even though I have already set the service account. I have created a service account: Go to the project in…
4
votes
4 answers

Android Publisher: "Track names in request path and request body must match."

I'm using the google-api-python-client library to upload apks to Google Playstore. All worked well until today. I did not modify my upload script but now i am getting the error: googleapiclient.errors.HttpError:
4
votes
2 answers

Python Mocking - How to mock Google's storage.client?

Could anybody help with GCP API mocking? Here's the function func.py: import re from google.cloud import storage def is_all_log_entries_sink(sink): storage_client = storage.Client() if 'filter' not in sink and 'storage.googleapis.com' in…
4
votes
3 answers

Where does a GoogleClientApiConnected exception come from?

For a project, I am creating an android app that includes a WebView, a service that can switch from background to foreground and the LocationManager relying on the NETWORK_PROVIDER first and the GPS_PROVIDER later. In very random cases, upon…
shoesel
  • 1,198
  • 8
  • 15
4
votes
1 answer

Unauthorized client error when using domain wide delegation with Google API

We are using Google API Ruby client with Domain Wide Delegation to update users' contacts, parse emails to pair them with our DB etc. Before April 1st everything was working just fine, however, since then we get unauthorized_client error…
4
votes
1 answer

Google service account and sheets permissions

I've got a Java backend (spring + google-oauth-client) that should be able to access Google.sheets and parse some data from there. First I implemented regular "3-legged" OAuth 2.0 authentication on my local backend deploy, it worked fine, but as…
4
votes
3 answers

how to change the package name of an app in android studio linked to firebase

I created a android app which is linked to Firebase . But i forgot to give package name so by default it took "com.example.abc.appname" . Here the problem is when i am uploading app in google playstore its not accepting release apk with generated…
maneesh
  • 216
  • 3
  • 14
4
votes
1 answer

Trying to Access Google Directory API via p12 throws not authorized error

from apiclient.discovery import build from oauth2client.service_account import ServiceAccountCredentials import json import base64 import httplib2 f = file('tara1-553d334b8702.p12', 'rb') key = f.read() f.close() credentials =…
4
votes
1 answer

How to use sheets.spreadsheets.batchUpdate() to apply formatting?

I am attempting to automatically apply new formatting to my spreadsheet, however while it does not appear to cause any errors, it is not working. My goal is to apply duration formatting to columns G and H (index 6 and 7) of my spreadsheet. I am…
David Hackett
  • 235
  • 2
  • 7
4
votes
3 answers

Android geofence BroadcastReceiver

I have implemented geofences using the GoogleApiClient -> when triggered, a Service connects to the GoogleApiClient and adds several Geofences. Before I had another IntentService registered as "callback" for geofence events. This worked more or…
Thomas S.E.
  • 1,528
  • 16
  • 28