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
2
votes
1 answer

Error getting access token for service account: 401 Unauthorized when using Calendar API using service account

I have a service account with domain wide delegation setup and I'm trying to create new accounts(google-api-services-admin-directory) using the service account and then add some preset calendars(google-api-services-calendar) to the newly created…
2
votes
1 answer

Gmail API does not include attachment when sending an email

I want to send mail through Gmail Api. This my code: @client = Google::APIClient.new @client.authorization.access_token = access_token @service = @client.discovered_api('gmail') mail = Mail.new mail.subject = subject mail.from= from_email mail.to=…
bav ko ten
  • 502
  • 7
  • 24
2
votes
1 answer

Google Cloud Speech API Not working in browser

I am using Google cloud speech-to-text API and setup project in localhost and live with credential and environment variable. It working with only command line while I run it through browser it gives me below error Fatal error: Uncaught…
2
votes
0 answers

How to Transition from Google to Firebase URL Shortener (JavaScript)?

In some JavaScript web client code, I currently use the Google URL shortener via the client libraries. Since Google is shifting over to Firebase for "dynamic link management", I would like to change my code accordingly. Below is what I have now for…
2
votes
0 answers

Error - #

I want to get the Behaviour Report from my Company's GA Account. I used the following code. ` require 'google/apis/analytics_v3' require 'googleauth' scope = 'https://www.googleapis.com/auth/analytics.readonly' analytics =…
2
votes
1 answer

Google Api for PHP (Drive API) Export as .pdf uploaded .docx file

I cannot obtain stable script when I try upload docx file to Google Drive, and then download that file but as PDF. Code: //Google…
2
votes
3 answers

Why is Javascript Google drive API returning 'false' as response?

I am using the Google Drive API v3 to retrieve a file. I can upload files and list files, but the files.get call returns 'false'. The documentation is pretty sparse (https://developers.google.com/drive/v3/reference/files/get) var contentRequest =…
2
votes
2 answers

How do I get sorted cell data from the Google sheets v4 API?

In the v3 API I could do something like: String listFeedUrl = (new URI(worksheet.getListFeedUrl().toString())).toURL(); ListQuery lq = new ListQuery(listFeedUrl); lq.setOrderBy("column:name"); lq.setReverse(false); ListFeed lf =…
Jaime
  • 1,182
  • 2
  • 12
  • 29
2
votes
1 answer

Google Drive Api V3 is not returning Web Content link after uploading a new file to Drive?

I am working on google client Api V3 for uploading files from my IOS Application. The Scopes I have used are NSArray *scopes = [NSArray arrayWithObjects:kGTLAuthScopeDrive,kGTLAuthScopeDriveFile,kGTLAuthScopeDriveAppdata,kGTLAuthScopeDriveMetadata,…
2
votes
1 answer

GoogleFit API sometimes does not work

I do Pedometer app for android. The principle of operation as follows: When you first launch the app, runs a service that runs in the foreground mode. Program prompts the user for Google account to login. If everything is fine then created…
Vlad
  • 149
  • 7
2
votes
0 answers

GTLServiceDrive executeQuery completionHandler not called

I'm using Google Drive SDK for iOS and followed the documentation/tutorial given by Google. My code is [self.serviceDrive executeQuery:query completionHandler:^(GTLServiceTicket *ticket, id object, NSError *error) { //code }]; The…
Anirudh
  • 125
  • 9
2
votes
1 answer

How can I hard-code client_id and client_secret of Google OAuth's in my java application?

I am following the Google Drive's API with java (https://developers.google.com/drive/v2/web/quickstart/java), and there is this line of code where it reads a .json file in my project directory (I copied it there) that has client_id and client_secret…
sorry_I_wont
  • 639
  • 1
  • 9
  • 16
2
votes
1 answer

Google Client API is showing Error

I am trying to integrate google client api in my codeigniter project and i have put google client api library in my thirdparty folder. And then made a library named Google.php Code is given below:
2
votes
1 answer

GoogleAuthorizationCodeRequestUrl not returning code

I am using GoogleAuthorizationCodeRequestUrl to get the code. String authorizationUrl = new GoogleAuthorizationCodeRequestUrl(clientId, redirectUrl, scope).build(); This should return me a code which I can use to get the accessToken. But this call…
GeekMaster
  • 61
  • 7
2
votes
1 answer

How to check whether a user exist before creating using google directory API

Using below code I am able to create new user successfully. But if a user already exist it is not working. So how can I make run this code when user is not exist in my domain. My code is $dir = new Google_Service_Directory($client); $user = new…
Kishore Reddy
  • 147
  • 10