google-api,google-api-php-clientRelated issues-Collection of common programming errors
user2608391
ios cocoa-touch google-api google-drive-sdk google-api-objc-client
I’m attempting to follow these instructions: https://developers.google.com/drive/quickstart-ios.Now the first time I tried this, I got the error mentioned on this question, but was able to solve it. The sample app now runs, however it crashes before uploading anything to Google Drive. It stops on the loading screen and gives the following error.Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘unexpected response data (uploading to the wrong URL?)’What does i
NumberOfGraham
ruby-on-rails ruby http google-api
I’m trying to send a HTTP GET request to a Google API that requires a parameter with the name “end-date” (with a hypen, not underscore). However, the following error gets thrown:unexpected keyword_end, expecting ‘}’end-date: ‘2013-07-24’Here’s the code that I’m trying to use: request = Typhoeus::Request.new(‘https://www.googleapis.com/analytics/v1/reports’,method: :get,params: {end-date: ‘2013-07-24’,start-date: ‘2013-07-01’,access_token: access_token} )Any way to make params: accept the hyphena
user1921214
google-api google-drive-sdk google-drive google-api-java-client
We accidently deleted an already created OAuth 2.0 client id for a specific package name / certificate hash in an API project. When now trying to re-create this OAuth 2.0 client id for that package name / certificate hash we are getting the error “An unexpected error has occurred. We’re looking into it.”. Is there a way to re-activate such a deleted OAuth 2.0 client-id or to simply re-create it?”Accidently deleted” because we fall into the problem that for testing and developing we used an other
Shine
android google-api google-play-services
I’m trying to make games API work, with reference to https://github.com/playgameservices/android-samples/blob/master/BaseGameUtils/src/com/google/example/games/basegameutils/BaseGameActivity.java as sample code.Mine is quite similar, basically I’m trying to connect a game client and receive a negative answer. When trying to manage it with startResolutionForResult() this is what I got:E/Volley(15638): [1492] il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/112370
bossylobster
python google-api google-calendar google-api-python-client
as written on the google api python client documentationDeleting a secondary calendar(under python example)service.calendars().delete(‘secondaryCalendarId’).execute()this function call returns the following: method() takes exactly 1 argument (2 given)Does anyone have a clue what this error means? Clearly I just passed 1 argument and that is the calendarId that needs to be deleted. Or did anyone make this function work? Need help.Thanks.
Pedram
c# .net google-analytics google-api google-api-dotnet-client
I’m using Google Analytics Core Reporting API. I can successfully run my request with a code like this.DataResource.GaResource.GetRequest requestData = googleAnalyticsService.Data.Ga.Get(profiles, startDateStr, endDateStr, metrics); requestData.Dimensions = dimensions; requestData.MaxResults = Globals.MAX_RESULTS;responseData = requestData.Execute();So in my responseData object I have all the data that I need. But I also need to know when I have an error in my request. So I need to catch a Googl
WATTO Studios
java nullpointerexception google-api gdata-api
Basically I’m getting this error…java.lang.NullPointerException: Null response body com.google.gdata.util.ServiceException.setResponse(ServiceException.java:222)at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:572)at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:560)at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538)at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleG
user1542876
google-api go google-bigquery
I am trying to access data stored in Bigquery through an app I am developing on Google App Engine. However each time I make a request I receive the error “permission denied”. I have added the application as a member of the API team for the project (I added the address @appspot.gserviceaccount.com) and I am accessing bigquery through the package code.google.com/p/google-api-go-client/bigquery/v2The following code is how I append the API key to each query:transport := KeyedTransport{Key: <api
user1157812
visual-studio-2010 google-api visual-studio-addins
In my Visual Studio 2010 add-in, the Exec method of the IDTCommandTarget interface stops triggering (on the relevant menu click) when I add the following line of code to the Exec method:GwebSearchClient client = new GwebSearchClient(“www.google.com”);On removing the above line, the Exec method gets called as expected. I’m using the google-api-for-dotnet and have (obviously) added the GoogleSearchAPI.dll as a reference to the add-in.If anyone can help, thanks.
HK1
android google-api google-calendar
I’m a new developer and I’m trying to use the Google Calender API. I followed the insturctions from http://code.google.com/apis/calendar/v3/using.html#setup and copied and pasted the example code. When I try to launch the setup method from my app it crashes with a ClassDefNotFoundException and it’s on the org.codehaus.jackson.JsonFactory class. I’ve tried almost everything. Can somebody give me an idea on what I’m doing wrong?Thanks
Husain Khambaty
google-api google-api-php-client
Now I know this is a common topic that has been over the Internet especially StackOverflow. But what I do not have (or haven’t yet seen) is a straight solution for the token being maintained over a session.I’m using the Google APIs Client Library for PHP .My Query: I have one index.php where I fetch the user data (such as name) using the Google_Oauth2Service from the PHP client lib. The user is authenticated successfully and all goes well. Now I’d like to use the URL Shortening service and ther
Sunil Kumar
php google-api oauth-2.0 google-oauth google-api-php-client
Working on Sign in with Google. Using PHP Lib v2, Oauth 2.0. After long time spending on it finally i configured, It worked once fine but after that it is not working. On the clicking of sign in link, it will take user for authentication to Google. Working fine till then authentication done. At the time of callback with GET variables ?code=something&authuser=0&prompt=consent&session_state=somethingIt is generating following Error:Fatal error: Uncaught exception ‘Google_AuthException
monsur
php google-api google-drive-sdk google-drive google-api-php-client
I followed THIS TUTORIAL to upload a file on Google Drive with php, directly from a REMOTE SERVER: so I create new API Project from Google API Console, enable Drive API and Drive SDK services, request OAuth Client ID and Client Secret, and write them in a script, then upload it together with Google APIs Client Library for PHP folder to http://www.MYSERVER.com/script1.php, to retrieve Auth code:<?phprequire_once ‘google-api-php-client/src/Google_Client.php’; require_once ‘google-api-php-client
swg1cor14
google google-api google-plus google-api-php-client
Lot of people with similar errors…none of which answer my question. Trying to get a user to login to their Google Plus and store the refresh token so I can post on their behalf to their Moments. Cant even get past the authenticating the Token. Here’s my code:require $_SERVER[‘DOCUMENT_ROOT’] . ‘/members/assets/lib/google/Google_Client.php’; require $_SERVER[‘DOCUMENT_ROOT’] . ‘/members/assets/lib/google/contrib/Google_PlusService.php’;$client = new Google_Client();$client->setApplicationNam
Samuele Catuzzi
in-app-purchase in-app-billing google-api-php-client
api version: google-api-php-client-0.6.7I need to verify on my server, through my php script, an android subscription purchase made by the user from my android app.So, no user interaction, the user will send to my server only the token of his purchase and my server will verify if is a valid purchase. The only way that I found that doesn’t need user interaction seem to be the “Service Accounts”, so I followed the documentation and made CLIENT_ID,SERVICE_ACCOUNT_NAME,KEY_FILE also, for testing, I
Felipe Schenone
google-api google-drive-sdk google-api-client google-api-php-client
This is what I’ve got so far, by combining this and this:require_once “google-api-php-client/src/Google_Client.php”; require_once “google-api-php-client/src/contrib/Google_DriveService.php”; require_once “google-api-php-client/src/contrib/Google_Oauth2Service.php”;//First, build a Drive service object authorized with the service accounts $auth = new Google_AssertionCredentials(DRIVE_SERVICE_ACCOUNT_EMAIL,array( DRIVE_SCOPE ),file_get_contents( DRIVE_SERVICE_ACCOUNT_KEY ) ); $client = new Google_
Asius Ice Sword
google-api-php-client oauth2-playground
I’m using the Google API v3 to PHP and “OAuth 2.0 Playground”, but do not know how to integrate the data that I provide “Playground” in my PHP code.This is my code:$client = new Google_Client(); $client->setApplicationName(“pruebas-web”);$client->setClientId(‘<MY-CLIENT-ID–FROM GOOLE API CONSOLE>’); $client->setClientSecret(‘<MY-CLIENT-SECRET–FROM GOOLE API CONSOLE>’); $client->setRedirectUri(‘https://LOCAL.MYWEB.COM/simple.php’); $client->setDeveloperKey(‘<GOOGLE
user2864030
youtube-api google-api google-oauth google-api-php-client youtube-analytics
I am trying to get some YouTube Analytics reports using the API with a Service account in order to perform some CRON jobs. I’ve already solved the common problem of NTP server sync and, obviously, i’ve set up the API console properly. <?phpini_set(‘display_errors’, 1);require_once ‘gapi/src/Google_Client.php’; require_once ‘gapi/src/contrib/Google_YouTubeAnalyticsService.php’;// Define constants. const CLIENT_ID = ‘************************.apps.googleusercontent.com’; const SERVICE_ACCOUNT_NA
Eli A Taylor
youtube-api google-api oauth-2.0 google-api-php-client
Our project lets users upload videos to OUR public youtube channel when they are signed into our session. We do not want to require additional OAuth2 verification, and instead follow the follow of Google API v2. My code (php) and error are below, but my general question is: can my server make the insert-video POST using my API key/secrets without requiring the user to authenticate.This question – Google Calendar API v3 hardcoded credentials – is very similar. Howevr if CURLing Google for the acc
Web site is in building