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
107
votes
8 answers

Using Postman to access OAuth 2.0 Google APIs

I am trying to access Proximity Google API using Postman chrome app. I have followed tutorials on postman and google dev website but I'm still getting 401 error message. What am I doing? Step 1 - Enable Proximity API: In order to use Proximity…
Sai
  • 2,089
  • 3
  • 19
  • 30
104
votes
8 answers

Error: 'The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.'

I am getting the following error while accessing Google Play Developer API using a service account: The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console. The service account email and…
85
votes
13 answers

Google Play Developer API - "The current user has insufficient permissions to perform the requested operation."

I have a Google dev console process with Google Play Developer API is enabled and the project is linked to Google Play project. In Google Dev console project, created OAuth Client ID (web application) (I'm an owner of the project). Using "client_id"…
Nguyen Hoang
  • 851
  • 1
  • 6
  • 4
75
votes
9 answers

GoogleApiClient is throwing "GoogleApiClient is not connected yet" AFTER onConnected function getting called

So I found something that is not very clear for me about GoogleApiClient. GoogleApiClient has a function called onConnected which is run when the client is connected (for sure). I got my own function called: startLocationListening which is…
60
votes
7 answers

Google spreadsheet API, 400 error bad request : unable to parse range

I am trying to access Google spreadsheets using a spreadsheet example. When I run the example code it worked fine. I just change the SpreadsheetId and range. It started giving me: Exception in thread "main"…
Hemant Yadav
  • 601
  • 1
  • 5
  • 4
53
votes
1 answer

Error 403: access_denied The developer hasn’t given you access to this app despite a new project being created

Please note: This is NOT a duplicate as I followed the SO only verified answer by creating a new project yet it didn't work. Also my case is with chrome extension or chrome app client ID from dev console. Error: Error 403: access_denied The…
48
votes
9 answers

Google OAuth 2.0 failing with Error 400: invalid_request for some client_id, but works well for others in the same project

We have some apps (or maybe we should call them a handful of scripts) that use Google APIs to facilitate some administrative tasks. Recently, after making another client_id in the same project, I started getting an error message similar to the one…
chutz
  • 2,256
  • 2
  • 25
  • 38
45
votes
10 answers

Failed to crunch file - Android studio (app:mergeDebugResources)

i am currentyl trying to implement Google ActivityRecognitionApi. However i get following errors: Error:Failed to crunch file …
45
votes
11 answers

Google Analytics API: "User does not have sufficient permissions for this account."

I'm writing a Ruby app that accesses the Google Analytics API to pull down some experiment information. The app connects and authenticates using a Google Service Account via the following function: def connect ... @@client =…
43
votes
5 answers

How do I add/create/insert files to Google Drive through the API?

Need help regarding inserting a file to google drive through api. The api documentation for this purpose does not clearly explains how to send the actual body of the file through http post request.
Niranja
  • 1,451
  • 2
  • 18
  • 19
40
votes
3 answers

GoogleApiClient onConnected never called on Wearable device

I have a wearable device that I'm trying to connect to the GoogleApiClient but the callbacks are never called (onConnected, onConnectionSuspended or onConnectionFailed). Everything else is working fine, the DataLayerListenerService is able to…
odiggity
  • 4,117
  • 7
  • 34
  • 41
39
votes
1 answer

Upload from Client Browser to Google Cloud Storage Using JavaScript

I am using Google Cloud Storage. To upload to cloud storage I have looked at different methods. The method I find most common is that the file is sent to the server, and from there it is sent to Google Cloud storage. I want to move the file directly…
S. A. Malik
  • 3,465
  • 6
  • 37
  • 56
34
votes
5 answers

Error implementing GoogleApiClient Builder for Android development

I am following Google's documentation to implement Google+ Sign In feature into an app. https://developers.google.com/+/mobile/android/getting-started I followed each step according to the guide but got stuck in an error generated by the…
Taha Rushain
  • 635
  • 1
  • 9
  • 26
28
votes
2 answers

Google Drive api scope and file access (drive vs drive.files)

I have created two refresh tokens for me: one for SCOPE = 'https://www.googleapis.com/auth/drive' and another SCOPE = 'https://www.googleapis.com/auth/drive.file' I'm trying to get information about files (using get method) Some files I can get…
WHITECOLOR
  • 24,996
  • 37
  • 121
  • 181
27
votes
4 answers

Detect or prevent if user uses fake location

I will block a user from using my app if they fake the location. So I use isFromMockProvider to check if the location is fake (follow here). But isFromMockProvider() may return false for faked locations in some cases. public void…
Linh
  • 57,942
  • 23
  • 262
  • 279
1
2 3
99 100