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
3 answers

Can't Validate Google Access Token (wrong number of segments)

I have very simple code directly from Google's website $client = new Google_Client(['client_id' => $CLIENT_ID]); $payload = $client->verifyIdToken($id_token); if ($payload) { $userid = $payload['sub']; echo $userid; } else { // Invalid ID…
bryan
  • 8,879
  • 18
  • 83
  • 166
4
votes
1 answer

How to set up Google Calendar API using Ruby client for server to server applications

It took me a bit of reading in several locations, as well as looking in Stack Overflow to figure out how to use the Google API Ruby client with Google Calendar in a server to server application without giving the server client full access to all…
4
votes
2 answers

How to mock Google API AndroidPublisher request

I've got a class that makes a request to the AndroidPublisher API to get the Purchases.Subscriptions.get resource. How does one mock out the OAuth request and call to get the subscription resource using the classes from the package…
4
votes
2 answers

Google API Endpoints using Javascript client library as an Angular 2 Service

I am using Google API Javascript library in my Angular 2 application. I have created a service which is injected in components. Here is the code: import { Injectable } from '@angular/core'; const url =…
4
votes
1 answer

When I try to programmatically add a chart to a google spreadsheet, the api v4 fails with Google_Service_Exception about a grid id

I played around with the google sheets api v4 because it looks quite interesting with the ability to also render charts. I'm using the google api client for php. First of all I created me a new spreadsheet with two sheets and filled in data on the…
Kasihasi
  • 1,062
  • 1
  • 8
  • 20
4
votes
1 answer

Google API client (Python): is it possible to use BatchHttpRequest with ETag caching

I'm using YouTube data API v3. Is it possible to make a big BatchHttpRequest (e.g., see here) and also to use ETags for local caching at the httplib2 level (e.g., see here)? ETags work fine for single queries, I don't understand if they are useful…
floatingpurr
  • 7,749
  • 9
  • 46
  • 106
4
votes
2 answers

How to erase all geofences fed into the google Geofence API?

I added geofences to the Google Geofence API as in that example. from time to time I would like to erase those geofences (either one by one or all togehter), independent of their expiration time etc. mGeofenceList.add(new Geofence.Builder() //…
4
votes
2 answers

Java Jar -java.lang.NoClassDefFoundError: com.google.api.client.http.HttpTransport from

i am using webmaster tool Java api V3 to query data , my code work fine in eclipse but when i export it to a Jar i get the error below Exception in thread "main" java.lang.NoClassDefFoundError: com.google.api.client.http.HttpTransport at…
4
votes
1 answer

Google People API - Is it possible to get custom fields?

I need to import google contacts to my application. For that I try to use the Google People API but I didn't find an option to get the contacts custom fields. Is it possible to get contact custom fields with the new Google People API? Should I use…
4
votes
2 answers

Can I receive a boudingPoly for LABEL_DETECTION results?

How can this be completed with the Google Vision-API please? send image to vision-api request: 'features': [{': 'LABEL_DETECTION','maxResults': 10,}] receive the labels in particular the one I'm interest in is a "clock" receive the…
4
votes
4 answers

Logout for GoogleApiClient in Android application

Using such code it is possible to link my app and use account. if (mGoogleApiClient == null) { mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Plus.API) .addApi(Drive.API) …
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
4
votes
2 answers

apiclient.discovery.build POST request body

I am using python for both my server Google App Engine API code and my client. I have plenty of client-server GET requests working already, now it's time for a POST request and I'm stuck. My relevant client code: service = build("myAPI", "v1",…
4
votes
1 answer

How send email with BCC header via GMAIL API?

How can I send email with BCC via GMAIL API? I send emails to TO or CC but BCC doesn't work. I use Base64.urlsafe_encode64(email.to_s)and this code create string without BCC. My working code example: email = Mail.new email.date = Time.now …
quatermain
  • 1,442
  • 2
  • 18
  • 33
4
votes
4 answers

How to integrate google+ sign in my android app?

Hello all actually i need to sign in people from google+ through my app now i read documentation on google where it isstated that To allow users to sign in, integrate Google Sign-In into your app. When you initialize the GoogleApiClient object,…
4
votes
1 answer

Upload public object to Google Cloud Storage with public link

I've searched everywhere on this but I cannot find a solution, how can I upload a public object to my google cloud storage, I want to have it so once the image is uploaded it can be viewed by anyone in the world. It seems I can only get this done…
Errol Green
  • 1,367
  • 5
  • 19
  • 32