Questions tagged [google-client]

Google client is an API which is used to invoke Google libraries to build high quality client.

Google client is an API which is used to invoke Google libraries to build high quality client.

Important link :

272 questions
21
votes
2 answers

How to Mock a Google API Library with Python 3.7 for Unit Testing

I'm trying to create a set of Unit Tests to test the Google Client Library for Bigquery. I'm struggling to make a Unittest file which will mock the client and will let me test my inputs. I've provided a simple script with some set functionality to…
19
votes
6 answers

Google::Apis::AuthorizationError (Unauthorized)

We are creating an application with Ionic framework as front-end and Ruby on Rails as back-end. We are able to link Gmail account in our app. Account linking is working fine, we get serverAuthCode from front-end and then using that we get refresh…
MeeSN
  • 29
  • 3
  • 12
19
votes
4 answers

Validating Google sign in ID token in Go

I am finding the way to validate ID token for Google sign-in for Android with a Go backend server project. What is the equivalent function for validating ID tokens by using a Google API Client Library in Go? From this page on Using a Google API…
ともこ
  • 775
  • 1
  • 5
  • 21
9
votes
2 answers

Different Python Google APIs

I am trying to figure out the difference between Google's GData API ( http://code.google.com/p/gdata-python-client/ ) and Google's APIs Client Library for Python ( http://code.google.com/p/google-api-python-client/ ). They both seem to be by Google.…
Alexis
  • 23,545
  • 19
  • 104
  • 143
8
votes
1 answer

How to get data form Google_Service_PeopleService?

I'm currently working with Google_Client api and want to fetch User Name, Phone, Email and User address. I set-up these scopes:…
Kousher Alam
  • 1,005
  • 1
  • 15
  • 30
6
votes
2 answers

How do I goo.gl-shorten a url in js?

Prereq: create yourself an API key for urlshortener at https://code.google.com/apis/console/ There are lots of docs for various ways of turning a goo.gl url into the original URL via the js get api, e g: here, here and here -- and at least the first…
ecmanaut
  • 5,030
  • 2
  • 44
  • 66
5
votes
1 answer

Google StorageTransfer job from S3 to GCS failed due to The caller does not have permission

I tried to transfer a file from Amazon S3 to Google Cloud Storage using API. I did successfully on the GCP console but when I'm writing a Python script using a service account credential, I got HttpError 403 when requesting…
5
votes
1 answer

How to work with Google api on multiple pages?

I am having trouble working with Google API on multiple pages. Example from Google works fine but all the code is on one page. I have two pages. First page, where user click on login button and second page, where I use google api to pull user…
Sandeep Singh
  • 897
  • 2
  • 8
  • 20
5
votes
1 answer

Regeneration of "one time authorization code" for Google+ on Android

I am working with authenticating via Google+ according to the following: https://developers.google.com/+/mobile/android/sign-in Most of this process seems fine. The problem I'm having is that we need to get a "one-time authorization code" so that…
jwir3
  • 6,019
  • 5
  • 47
  • 92
5
votes
5 answers

Failed to connect to www.googleapis.com port 443: Network unreachable

I'm trying to implement google sign-in in my website that is written in Symfony2 using Google Client API. I followed the instructions here, but when I call $client->authenticate($code); command an exception is thrown telling that: Failed to connect…
Reza Abbasi
  • 1,521
  • 2
  • 15
  • 21
5
votes
1 answer

How can I show a list of *all* available calendars using Google Calendar API v3 / Google API Client Library?

I have been trying to access the Google Calendar API v3 using PHP. Initially, I want to simply list the user calendars that are accessible to my call to the API. To do so, I have downloaded the Google API PHP Client Library and have attempted to use…
5
votes
4 answers

Not connected. Call Connect or wait for onConnected() to be called exception inside onConnected?

I have this onConnected call back implemented for Google LocationClient API: @Override public void onConnected(Bundle arg0) { if (lc != null) { lastKnownLocation = lc.getLastLocation(); LocationRequest request = new…
Emil Adz
  • 40,709
  • 36
  • 140
  • 187
4
votes
0 answers

Is there any change in reporting implementation of google api client library now that universal analytics is getting deprecated?

I am using google-api-php-client (version v2.2.2) in my project for google analytics. According to this article the existing implementation of google analytics is going to get deprecated. I just want to make sure my existing implementation of…
4
votes
1 answer

Data Version Control with Google Drive Remote: "googleapiclient.errors.UnknownApiNameOrVersion: name: drive version: v2"

I'm trying to setup DVC with Google Drive storage as shown here. So far, I've been unsuccessful in pushing data to the remote. I tried both with and without the Google App setup. After running a dvc push -v, the following exception is shown: File…
amiasato
  • 914
  • 6
  • 14
4
votes
2 answers

How can you connect to Google Cloud Datastore from Cloud Run?

I'm willing to deploy a service in Google-Cloud-Run. It would be a (python) Flask App that would connect to datastore (firestore in datastore mode) to either write or read a small blob. The problem is that it is not explained in the docs: Accessing…
1
2 3
18 19