The Google APIs Client Library for PHP provides access to many Google APIs. It is designed for PHP client-application developers and offers simple, flexible, powerful API access.
3
votes
0answers
223 views
Google Calendar API on add event callback for sync
I am using google-api-php-clientfor fetching and inserting Google Calendar events. Now I want to synchronize events on my system with events on Google Calendar.
I am wondering, if I add Event in ...
2
votes
0answers
41 views
Youtube API V3 and PHP: How to update syndicate option through API
I am using YouTube API V3 and Google API PHP client to upload video. I am not able to find any parameter to update syndicate option which is in advanced settings.
In V2 the option is available with ...
2
votes
0answers
64 views
Getting scores from Google Play Games Services, server side
I am trying to load from a web server some scores from GPGS, using the Google API PHP Client.
Here's how I proceed:
1/ SETTING UP THE OAUTH CLIENT
I created the OAuth client on the Google API ...
2
votes
0answers
131 views
import gmail contact using oauth2.0 in php
I have referred the following tutorial here
But still I am not able to retrieve gmail contacts. Its displaying blank.
echo $xmlresponse displays the following error message:
usageLimits ...
2
votes
0answers
882 views
Google_Auth_Exception' with message 'Error fetching OAuth2 access token, message: 'invalid_grant'
I'm attempting a slight variation of the Google+ web sign-in server side flow as described on the Google Developer's website.
I have a staff login page (staff_login.php) which uses javascript via ...
2
votes
0answers
144 views
Get Maps Engine user layers list with oAuth 2.0 from App Engine using API PHP Client Library
I am authenticating via oAuth 2.0, using Google's API PHP Client library from App Engine, in order to retrieve the current user's list of layers in Maps Engine (now called My Maps).
I'm using the ...
2
votes
0answers
293 views
Max size for oauth token
I want to store my token string in a mysql database. I am not sure about the max size for the token returned by the Client::getAccessToken function in the google-api-php-client library ...
2
votes
0answers
238 views
Google_Service_Exception error 500 not caught
I am using the google api client to get a list of blogger posts (see below code).
try {
// create service and get data
$blogger = new \Google_Service_Blogger($this->client);
...
2
votes
0answers
439 views
How do I retrieve contacts google-api-php-client
I have been looking through all of the examples for the google-api-php-client but haven't been able to find anything which relates to getting contacts with this API.
I can successfully authenticate ...
2
votes
0answers
524 views
Google cloudprint with google-php-api-client Oauth2 and curl returns 403 error while trying to cronjob
I first used the following script to show all available printers (and I then obtained the refresh token from this script):
<?php
require_once 'XXX/Google_Client.php';
session_start();
$client ...
2
votes
0answers
1k views
Cannot use refresh token to get data offline - Login Required error - Google API PHP client?
I have auth.php which has a link for me to authorise access to Google Analytics and get a refresh token, store it to a text file token.txt. I got the refresh token alright and saved it to token.txt ...
1
vote
0answers
26 views
Cannot see Youtube Content ID API to enable
I got error while trying to update Youtube Video asset
Error calling GET https://www.googleapis.com/youtube/partner/v1/contentOwners?fetchMine=true: (403) Access Not Configured. The API (Youtube ...
1
vote
0answers
22 views
Update time zone using google calendar api
I am trying to update google event time zone but not able to find any method to update time-zone yes, there is the method for getting the time-zone
$calendar = ...
1
vote
0answers
69 views
Point values show up in Google Fit API Explorer, but not in PHP app
I am using the following PHP command to retrieve steps from Google Fit:
...
1
vote
0answers
186 views
Google Client API refresh token Fatal error: Uncaught exception 'Google_Auth_Exception' 'Error refreshing the OAuth2 token
When I try to refresh my token I receive
Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Error refreshing the OAuth2 token, message: '{ "error" : "invalid_client", ...
1
vote
0answers
105 views
Caught Google service Exception 401 message is Error refreshing the OAuth2 token, message: '{ “error” : “unauthorized_client” }
I am using google api php client.I got this error while upload file to youtube. I got token and put in a txt file. Its fresh token and its not supposed to expire. Why am i keep getting this error. My ...
1
vote
0answers
75 views
Webmasters API User does not have sufficient permission for site
I use google-api-php-client library to access webmaster tools data. When I wanted to list sitemaps, it appeared Fatal error: Uncaught exception 'Google_Service_Exception'(403) User does not have ...
1
vote
0answers
97 views
Problems implementing Google Service Account Example in PHP - Getting OAUTH2 Error
I am trying to implement an example of using a google services account. What I want to do is very basic - create a connection, set the service provider, pull back some data. For some reason however, ...
1
vote
0answers
37 views
Google analytics api (Analytics.php) doesn't support prettyPrint option
When I tried passing prettyPrint into
$optParams['prettyPrint'] = true;
$analytics->data_ga->get($analytics_id,
$start_date,
$end_date,$metrics, ...
1
vote
0answers
64 views
Cannot update user information using Google PHP API Client library
I am trying to update user phone numbers on Google Apps Directory. Currently I have the API able to retrieve information on user's but when I try to set their phone numbers it just silently fails. The ...
1
vote
0answers
36 views
Two Google_Client objects in the same script
I'm trying to create two Google_MirrorService objects on the same script: one to send a timeline card to one user and other to update other user timeline card. The problem is that when I create those ...
1
vote
0answers
209 views
Error 500 inserting a activity with google_api_domain and google-api-php-client
I have problems when using the api google-api-php-client to create an activity for a circle that I created within the API google+ Domains API. I'm getting a 500 error when I make the request. The code ...
1
vote
0answers
101 views
Pushing Offline Leads using Adwords API
I am using the below function to push my offline leads to api, everything looks good and returns success but when I check adwords, it doesnt show any data saying it received. I have tried many leads ...
1
vote
0answers
70 views
Accessing Task Queue REST API from APIs Explorer
I want to use the Task Queue REST API in my GAE hosted php application but I keep getting:
403 Forbidden
Cache-Control: private, max-age=0
Content-Encoding: gzip
Content-Length: 146
Content-Type: ...
1
vote
0answers
225 views
Google Plus API Authenticated User
I have used the following code to authenticate a user (it is based off of googles examples of a services account on github):
<?php
//API INFORMATION
$client_id='xx-x.apps.googleusercontent.com';
...
1
vote
0answers
90 views
Updating google apps user details
I want to create a page with a form to update user account details (such as password).
I've already gotten client_id and client_secret for my apps, i also already activated API for my google apps on ...
1
vote
0answers
144 views
Google Drive API Permissions Insert sendNotificationEmails Bad Request
I'm working with the google-api-php-client Library for Google Drive (LIBVER = "1.0.5-beta") and when I issue this:
$permission = new Google_Service_Drive_Permission();
...
1
vote
0answers
321 views
Google drive file upload and share it to public access
I am uploading files to google drive account, what i want to do is to make it readable, but not editable to the public. How can i do that?
$file = new Google_Service_Drive_DriveFile();
...
1
vote
0answers
159 views
Cannot create or update posts using php v3 library on a previously invitation-only blog
I use the Blogger library for php,I can not edit an existing post.
This works fine on a publicly accessible blog where the authenticated user is an "author".
However, on a blog which was originally ...
1
vote
0answers
90 views
Sample Code for a Google Apps Marketplace (GAMv2) in PHP?
I am looking to create an installable Google Apps Marketplace (GAMv2) app in PHP using the Google APIs Client Library for PHP.
The examples in github don't demonstrate how to setup the client object ...
1
vote
0answers
39 views
Receiving negative counts in targeted monthly searches
*****RESOLVED*******
This was a result of dummy data from using a test MCC account. For any others who encounter a similar issue, note that the dummy data is both massive (ie 6863209244739200390) and ...
1
vote
0answers
210 views
refreshToken() not working in google-api-php-client
Am using PHP client library provided by Google. Also using web applications in Google API console. When i try to refresh my token its return "Google_AuthException' with message 'Error refreshing the ...
1
vote
0answers
99 views
Google API PHP Client - how to disable event reminders?
I'm using Google API PHP Client, to manage my Google Calendar in a web app.
It appears the reminders set through Google Calendar, get re-send by the API class. So I get 2 different notification ...
1
vote
0answers
103 views
Youtube - Resumable upload / connection timeouts
I'm using this library to upload videos to YouTube. Since I use this on different locations, and some locations does not have stable connection, I'm getting time-outs when trying to reach Google's ...
1
vote
0answers
132 views
Google authentication using different CLIENT ID's
I want to use Google Authentication Oauth 2 to validate users to access many domains using the code provided by Google in a library on my server. I downloaded and installed the code supplied by Google ...
1
vote
0answers
262 views
Google Calendar error 400
I am trying to add/insert a google calendar event using PHP, i am using the google API libraries via a composer install.
I have traced the error to the object being inserted (i have the token). I ...
1
vote
0answers
930 views
google plus api: get access token and user details from code in php
I'm using google server side flow, the link is
https://developers.google.com/+https://waybackassets.bk21.net/signin/server-side-flow .
I'm struct with the step 8, actually I dont know how to get the access token from code.
I ...
1
vote
0answers
391 views
How to get Token and TokenSecret for offline use in google oauth 2.0?
As you know there is Token and Token secret in case of Oauth 1 for offline use ( for each time the user need not give grant access ). Similarly i need Token and Token secret for Oauth 2.
Am using PHP ...
1
vote
0answers
202 views
Using Google Calendar API php without logging in
I'm trying to access a Google Calendar without logging in like in this tutorial.
I followed the tutorial, but it does not work for me. I managed to get my refresh token, but when I try to get an ...
1
vote
0answers
709 views
Youtube API get_video_info & url_encoded_fmt_stream_map
Starting from the YouTube API get_video_info, I'm retrieving from a PHP code the url_encoded_fmt_stream_map
Everything was fine until this morning when suddenly the fmt_stream automagically decided ...
1
vote
0answers
112 views
Get notified when a a new calendar is created in Google Calendar API
I read about the push notifications for a particular Google calendar, where a POST request is sent to a preset endpoint URL notifying of any changes (new events, event changes) in a particular ...
1
vote
0answers
93 views
Create New Public Google Document Using PHP (Without any client intervention)
I would like to create public google document using PHP (in the background script on the server side).
It should simply create the new public document which can be accessed and edited by any one ...
1
vote
0answers
265 views
I want to check whether android app is installed or not or get list of all apps installed through google play store
Hi I have downloaded google api php client. I want to authenticate user using his/her google android login and then check either a respective android app is installed on his phone against the matching ...
1
vote
0answers
263 views
Google PHP API Client & Fusion Tables: How to use importRows?
Version 0.6.3 of the Google API php Client appears to support the importRows command:
public function importRows($tableId, $optParams = array()) {
$params = array('tableId' => $tableId);
...
1
vote
0answers
124 views
how to send facebook user album name into google+ for creating album of the same name into google+ albums
i am developing one application which can authenticate into facebook account fetch the albums of user account and move selected facebook albums into google+ account, i have achieve the facebook part ...
1
vote
0answers
289 views
Youtube API v.3 - PHP - Refresh Token revoked unexpectly
we have developed an offline service with Youtube API v.3 and PHP.
We have correctly obtained an access token and a refresh token from Google OAuth and our app works flawlessly; the app uses the ...
1
vote
0answers
184 views
Google Reseller Customer Admin User Creation Admin SDK How
Google Provisioning API is being replaced by Admin SDK. How can I create a Admin User for my Reseller Customer through Directory API programmatically after creating the customer and subscription ...
1
vote
0answers
2k views
Failed to start the resumable upload
Api Version 0.6.2
I was following this answer:
Post large video to youtube via google php client api v3
I'm getting
Failed to start the resumable upload
500 Internal Server Error - ...
1
vote
0answers
172 views
Can you set a YouTube video's license to CreativeCommons via the PHP 3.0 API?
You're supposed to be able to do this, through something like this:
$snippet = new Google_VideoSnippet();
$snippet->setTitle("some title");
$snippet->setDescription("some description);
...
...
1
vote
0answers
330 views
Google Cloud Storage with PHP: Error ' (403) Access Not Configured'
I'm making a simple request using the following code sample below.
It seems I'm not the only one getting this error, and I haven't been able to find any solutions. It seems self explanatory, but how ...