Questions tagged [google-client]

0

votes
0

answer
8

Views

Getting “Illegal character(s) in message header field” using google rest client

I am having a issue using Google Client where Java is throwing Exception: 'java.lang.IllegalArgumentException: Illegal character(s) in message header field: :location' I have tried url encoding both the key and value but it produces the same result any help would be great! Code: GenericUrl url = ne...
Jonathan Newton
1

votes
1

answer
317

Views

YouTube Reporting API using Service Account

Following Google's documentation you should be able to use the YouTube Reporting API without user authentication by using a Service Account. Currently I have a very simple sample that should give me a list of available Jobs, could be empty though. But I get a 403 permission denied. Request: $client...
Martin van Dam
1

votes
0

answer
21

Views

OnResult never called after DriveApi.NewDriveContent

I'm trying to create a file on google drive through android, I successfully sign in google but when I try to create a drive content I don't receive the OnResult. This is my code: public class GoogleDrive: Java.Lang.Object, IResultCallback { GoogleApiClient GAClient; public GoogleDrive(Android.Conten...
Entretoize
1

votes
0

answer
45

Views

Not able to post data on google plus page using normal gmail account

I have created an app by using g suite account . Using google client API , I can able to post the data on google plus page using my g suite account. It's fine. But I need to post the data on google plus page normal gmail account. When I tried to post the data using my normal test.gmail.com. Its p...
Vetri
1

votes
0

answer
27

Views

How to get the search keyword details from google client API

I need to display my google analytics search keywords details using google client API PHP. I have used following code to get those details . $optParams = array('dimensions' => 'ga:searchKeyword','max-results' => '10','sort' => '-ga:users','start-index' => $start + 1 ); $selected_val = 'ga:users';...
Vetri
1

votes
0

answer
73

Views

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 https://storagetransfer.googleapis.com/v1/transferJobs?alt=json returned 'Th...
prideloki
1

votes
1

answer
17

Views

Using the nextSyncToken as option for the syncToken in listCalendarList or listEvents returns the same result

In the Google Calendar API v 2.2.2 using getNextSyncToken returns the same nextSyncToken, causing an infinite loop when trying to retrieve all changes. $next = $this->service->calendarList->listCalendarList()->getNextSyncToken(); $this->service->calendarList->listCalendarList(['syncToken'=>$next]);...
Davide Schwarts
1

votes
3

answer
1.9k

Views

Conversion to Dalvik format failed with error 1 when using google-api-java-client library with android

I'm following a sample to learn about the google-api-java-client library. I've downloaded the jars and added them to my libs folder, in my project. During compile time, there are no errors, but when I run the project, I get this error message: Dx trouble processing 'javax/transaction/HeuristicCommit...
1

votes
1

answer
231

Views

OAuth 2.0 for Server to Server Applications: two or three parameters? (Or: Can some Google engineers possibly not count up to three? :)

I'm trying to obtain an Google OAuth 2.0 access token for a service account but receive an invalid_grant error instead. I've checked my various artifacts (private key, etc.) and clock timings but have not been able to resolve this so far. There is one possibly related item that seems odd: Google's d...
Drux
1

votes
1

answer
1.9k

Views

Can I access other Google User's Calendars through the Google API v3

I would like to build an application that manages appointments in Google calendar on behalf of my users when they are not logged in. The application would be a booking service, subscribing users (our service providers) would book out the times they are not available, and customers would see a free/...
Greg.Forbes
1

votes
1

answer
2.2k

Views

How do I retrieve a Video by ID with Youtube API v3?

I'd like to get a Response referring to a single Video on Youtube. Let's say that I know its ID and like to see if it is still on Youtube. How does the request have to look like? I am using the google-api-client with client_id and client_secret and like to do something like this: client.execute( :ap...
Ulfmann
1

votes
1

answer
1.2k

Views

Google Analytics API how to retrieve next page of data

I'm using the Google Analytics API to retrieve reporting data for one of my profiles. If the number of rows in the report exceeds 1000, the response contains 1,000 results plus a parameter called nextPage, which contains a URL for the next page of data. I am confused how to actually use this URL in...
flyingL123
1

votes
1

answer
1k

Views

Google Drive Service: “Catchable fatal error: Argument 1 passed to Google_DriveService::__construct() must be an instance of Google_Client”

So yeah, the error just makes it look like the argument isn't an instance of the Google Drive Service. I've looked up and down for people with similar errors but I've got nothing. Here's the full error and then my code: Catchable fatal error: Argument 1 passed to Google_DriveService::__construct() m...
Bryce
1

votes
1

answer
163

Views

Why when trying to upload a video file to youtube i'm getting InvalidCredentialsException?

This is my code in form1: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using Google.GData.Client; using Google.GData.Extensions; using Google.GD...
Simon Gamlieli
1

votes
1

answer
516

Views

Google Calendar API v3: FreeBusy request returning “The requested time range is too long.”

It seems that Google Calendar's freeBusy method will not accept timeMin/timeMax ranges beyond two months or so. How am I supposed to find Free/Busy information for the range of the calendar between now and forever (or a distant point in the future)? Request: { 'items': [ { 'id': 'MY_GMAIL_CALENDAR_I...
Hugh Guiney
1

votes
1

answer
71

Views

I have a web application and I want clients to allow files insert/ update/ delete files with automatic authentication

I have a C# web application and I want clients to allow files insert/ update/ delete files with automatic authentication using google api client library. My first question is whether it is possible possible or not using 'Service account' or any other technique. I have started things like: Enabled 2...
Gopal Biswas
1

votes
1

answer
783

Views

INPUT_VALUE_OPTION_UNSPECIFIED issue on Google Spread Sheet Api on PHP Client

According to the question asked by 'Setting PUT request body with PHP' 1, I use the method mentioned in the answer to use curl to post the content to my spreadsheet by php. And I got the following error message in return, so as the result from the Postman query. The content of this spreadsheet shoul...
Kang CiFong
1

votes
1

answer
170

Views

Gmail API PHP Client Library or api - How do send gmail draft?

I got requirement to send drafted email(Gmail) on scheduled time. I tried below code. $access_token = 'ya29.DxswidlwadllsidVeg5B67CdpLN6QR0d1nCuQmg9GaMT9iq8-zIA8O29yR9rEMM'; //the access token is subject to change every hour $header = array('Content-Type: message/rfc822', 'Authorization: Bearer $acc...
J.Rob
1

votes
1

answer
442

Views

Google pubsub flow control

I'm trying to implement a service which consumes a google pubsub subscription at its own pace. By that, I mean I need fine control on when I need to consume messages i.e get a batch of messages, pause for a while, do not get more than X messages... Using google client libraries I did not find a way...
benjamin.d
1

votes
2

answer
363

Views

Use Google Cloud API in c#

I having been trying to query databases from Google Cloud SQL in c#. However, I can't get it working. I followed the Google Reference pages https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/databases/get and tried to do a simple thing such as get the list of databases first. and in my .cspr...
HaipengSu
1

votes
1

answer
99

Views

How to check if the Google Drive file is shared with anyone having the link to the file with Google Drive API?

I am writing an API to check if the Google Drive file is shared with anyone having the link. I have File ID of a Google Drive file. I have a code snippet to print the permission of the file function printPermission($service, $fileId, $permissionId) { try { $permission = $service->permissions->get($f...
Suyog Baldota
1

votes
1

answer
0

Views

Google+ APIs have been shut down as of March 7, what needs to update?

Google+ APIs have been shut down as of March 7, as they described below https://developers.google.com/+/api-shutdown Here is my code snippet which I used in application but the application is still working with google login. Also, I got no email regarding this issue. callbackManager = CallbackManage...
Nicky
1

votes
1

answer
373

Views

iOS Google+ Signin SDK - use token in phonegap for authenticated calls?

Got a question for all you Googlers / phonegap / Oauth gurus out there. Can I use the Google+ SDK on iOS to choose an account and authenticate and then pass the token to a phonegap app where authenticated calls could be made with said token? I'm looking for the best way to make authenticated calls...
Patrick
1

votes
1

answer
121

Views

Bigquery Api Java client intermittently returning bad results

I am executing some long running quires using the big-query java client. I construct a big-query job and execute like this val queryRequest = new QueryRequest().setQuery(query) val queryJob = client.jobs().query(ProjectId, queryRequest) queryJob.execute() The problem I am facing is the for the same...
Vishal John
1

votes
2

answer
805

Views

Upload video to youtube with hardcode username & password ios

I am developing an iPhone application. This app supports a feature where the user can upload a video to a common static Youtube account which is shared by all the app users. When the app receives an upload request, it internally logs-in to the common Youtube account and uploads the video. As per my...
Shorhashi
1

votes
3

answer
140

Views

Why can't I call this Service from my Activity?

I've tried calling this Service in two different ways, but it didn't seem to work. The first way was: startService(new Intent(getBaseContext(), LocationService.class)); for which I get an error saying ` Caused by: `java.lang.IllegalStateException: GoogleApiClient is not connected yet. Then I trie...
Ivan
1

votes
1

answer
951

Views

'Error refreshing the OAuth2 token, message: '{ “error” : “invalid_grant” }'' on live site, but works on local environment

I am having a really weird issue with the Google Admin SDK (I am using the Google API PHP client library). I can succesfully add groups and users and generally use the API on my local development machine, but when I put it on the live website it crashes with this error: Fatal error: Uncaught excepti...
Gladen
1

votes
1

answer
269

Views

Is there a Google-Supported way to stub out gapi.client JS library?

Is there a recommended way to stub out the gapi.client api? I'd like to test its integration with some of my applications' functionality, and think I have to constantly manually stub out responses. Is there an existing stubbing library out there?
btelles
1

votes
1

answer
519

Views

Is there a way to use Google's Javascript client login without a pop up?

I'm using Google's client login in my client-side javascript, which causes a popup to appear for auth and google login. However, I'd love to configure the sign-in to redirect to the popup's url, auth the user, then come back to my site instead. I can't find anything in the documentation about config...
cranderveldt
1

votes
2

answer
98

Views

Trying to understand scope on angular 5 .then

On this example, the promise that i created works ok. But the promise from the google api don't work. It says that the this.youtube is undefined index.html app.component.html custom Promise youtube Promise app.component.ts import { Component } from '@angular/core'; import { } from '@types/gapi.clie...
Mateus Silva
1

votes
1

answer
46

Views

Call Google_Client from a static method in a controller using Slim 3

I need to create a new user in google, and I`m using Slim 3 to make a REST API. My code: composer.json: 'require': { 'somethig': 'somethig', 'google/apiclient': '2.0' }, 'autoload': { 'psr-4': { 'App\\': 'app/' } } routes.php: $app->get('/users/create', App\Controllers\UserController::class . ':crea...
Satelier Diego
1

votes
1

answer
937

Views

unable to connect to my google endpoints with my service object

I have generated my client library from my endpoints, and also passed the appropriate credential (the client ID is 100% correct) for my authenticated call to the endpoints. But I am still getting this error when I run my codes: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthI...
Isaac
1

votes
1

answer
256

Views

Polymer google-client-loader, does not care about root property

I'm trying to get my Polymer1.0 app to work with my google cloud endpoints API but for some reason it seems that google-client-loader doesn't care what i put in for root, it always goes to content.googleapis.com to fetch the API , of course it isn't there ! code: getting: GET https://content.googlea...
user47376
2

votes
0

answer
164

Views

Google sheets API authentication from .jar

I'm putting together a simple application that basically just reads and writes from google sheets (and stores some of that stuff in a postgres database in between operations) using IntelliJ. It all works fine when run locally, except it often (and I can't seem to tell when it 'needs' to do this) for...
Brian Margolis
2

votes
2

answer
654

Views

Extracting BigQuery Data From a Shared Dataset

Is it possible to extract data (to google cloud storage) from a shared dataset (where I have only have view permissions) using the client APIs (python)? I can do this manually using the web browser, but cannot get it to work using the APIs. I have created a project (MyProject) and a service account...
Breandán
2

votes
1

answer
4.1k

Views

Execution of authentication request returned unexpected result: 404

I have been using the Google.GData.Analytics and Google.GData.Client to retrieve some Google Analytics data though the Google Analytics API v2 in my web application. The code was as follows: string username = '[email protected]'; string password = 'myPasswordHere'; string profileId = 'ga:88376970'; st...
Mudassir159
3

votes
1

answer
780

Views

Using Google SettingsAPI and PermissionModel API in tandem

I am looking at the Play Services 7.0 documentation that can be found here: http://android-developers.blogspot.in/2015/03/google-play-services-70-places-everyone.html?m=1 https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi As we can see Android has simplified...
user2511882
4

votes
1

answer
264

Views

Google Monitoring API : Get Values

I'm trying to use the Google Monitoring API to retrieve metrics about my cloud usage. I'm using the Google Client Library for Python. The API advertises the ability to access over 900 Stackdriver Monitoring Metrics. I am interested in accessing some Google App Engine metrics, such as Instance count...
Matt Hahn
2

votes
1

answer
1.2k

Views

How can I use php google client with proxy

Is there any possibility to use the latest php google client with proxy? I'm asking because in my company we started using proxy for all our web apps, and I can't find any simple solution for that :) Any advice, suggestions?
Marcin
2

votes
3

answer
4.7k

Views

Google APIs Client Library for JS 'Access Not Configured' error

I am trying to get to work a sample described here (with Calendar API): http://googleappsdeveloper.blogspot.hu/2011/12/using-new-js-library-to-unlock-power-of.html The code itself runs properly, but I always get an error message (pasted from JSON): 'message': 'Access Not Configured. Please use Googl...
nimesulide

View additional questions