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.

learn more… | top users | synonyms

1
vote
0answers
7 views

google client php library blogger

i am use google client library to login but when i use (Google_Service_Blogger) for example insert or get post's i have this error message. The request did not specify any referer. Please ensure that ...
2
votes
1answer
20 views

Google Calendar API PHP skip the client side authentication and turn everything into a web application instead of command line one

I am creating a code that must add, update and delete event to google calendar I have the email address of the user to be added. How to have auto client side authentication( confirm authentication by ...
0
votes
0answers
20 views

Reading a private google spreadsheet using Service account

I'm trying to develop a php function that would authorize my access to a private spreadsheet and display it in a datatable. I have downloaded google-api-php-client-2.1.0_PHP54 in git and installed it ...
0
votes
0answers
4 views

Pulling LabelID from LabelName AWQL

I'm trying to execute this query: SELECT LabelId FROM LABEL_REPORT WHERE LabelName='mtl-mansion-for-sale' But it throws an error: An error has occurred: [QueryError{reason=INVALID_FROM_CLAUSE, ...
0
votes
0answers
12 views

How to call google script api from my website?

I have created google script which returns a calculated number , how can i call it with parameter from my website and run the script and make it print on my website. ??
0
votes
1answer
27 views

google spreadsheetFeed count null

I am working on google spreadsheet for inserting,creating and updating a spreadsheet by php. I have include all library from https://github.com/google/google-api-php-client and follow all steps.In ...
0
votes
0answers
23 views

Google APIs Client Library for PHP invalid key

I am trying to use the api to access storage bucket with the following code: $client = new Google_Client(); $client->setApplicationName("JJJJ-app-143412"); $client->setDeveloperKey("JJJJ-...
-2
votes
0answers
23 views

How can I set cell format in Google Sheets API for PHP

I'm writing a Google Spreadsheet using the Google API PHP Client. Everything is working fine, but I could not figure out how to set the column formats correctly. In my particular case I have a column ...
2
votes
1answer
44 views

Google Analytics, Dimensions & Metrics - How to?

I've finally figured out how i connected to the Google Analytics, correct - and I'm now able to access data to some point. I'm using the google-api-php-client. I can work with metrics just fine fx, ...
1
vote
1answer
24 views

Get next report page via Google_Service_AnalyticsReporting_Report

i'm using this library https://github.com/google/google-api-php-client-services and this samples: https://developers.google.com/analytics/devguides/reporting/core/v4/samples?hl=ru This is a code ...
0
votes
1answer
36 views

Which APIs are accessible through Google API Client Library for PHP?

I wanted to use it to access Google Places API Web Service, but I can't find corresponding class. The documentation says: Google APIs give you programmatic access to Google Maps, Google Drive, ...
-1
votes
0answers
41 views

How to: OAuth2, retrieve data from Google Analytics

I'm currently working on a plugin that is supposed to interact with the Google Analytics, and figured that the google-api-php is the best way to do that. I have tried a couple of different examples, ...
-2
votes
0answers
19 views

How many days google take to increase daily limit after applying [closed]

I have applied for increasing limits of number of request while using Google api. I am fetching book cover using key but it allow ony 1000 request per day and i have applied for higher quote. I want ...
0
votes
1answer
41 views

OAuth2, retrieve data from Google Analytics

The why I'm working on a plugin that is supposed to interact with the Google Analytics, and figured that the google-api-php is the best way to do that. I have not used a couple of hours of research ...
0
votes
0answers
18 views

Google api curl error

I use google youtube api. Everything goes fine but when user returns from youtube this is an error. Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException' with message 'cURL error ...
1
vote
1answer
12 views

Copy Play store report to personal Google Cloud Storage bucket

I have a problem using Google Cloud Storage and Google Play reports. I'd like to parse reports on my server in PHP. To do that I'd like to move the file in the default app bucket to a new one. When I ...
0
votes
1answer
37 views

I cannot get access token from $_GET[“code”]

I try to use google youtube api. Everything gone fine. I form client object like documents said. I redirect to youtube for permission and give permission. Then i take $_GET["code"]. But i cannot ...
0
votes
0answers
43 views

Delete events from google calendar using api

I'm trying delete events from google calendar using api: $service->events->delete('primary', 'eventId'); And i got this error: { "error": { "errors": [ { "domain": "global", "...
0
votes
0answers
32 views

Google Authentication via PHP Client Library/oAuth2

I have searched long and far for this on Google Identity documentation but my question seems to be out of it's scope (https://developers.google.com/identity/protocols/OAuth2). This is what I have: I ...
0
votes
0answers
17 views

Unusual Behaviour - Google Service Account (Webhooks/Channels)

We are experiencing unusual behaviour with Google Apps (G-Suite) service accounts, with google drive channels. Within our application there are two ways of obtaining an API access token for a user: ...
0
votes
1answer
30 views

Google book Images fetching limit exceed

I am fetching Google Book images through ISBN number. I am using dynamic link which is given here https://developers.google.com/books/docs/dynamic-links According to this, it does not have any limit ...
0
votes
0answers
28 views

How can I find out if a user has clicked the google share button on my web site?

Regardless of Interactive posts or the simple share/+1 button, I've been around the internet to find an answer for this question which actually works on PC/Mac/iPhone/Android browsers (FF, IE, Chrome, ...
1
vote
1answer
27 views

Exponential Backoff With Google API PHP Client Library

I am running a web app to get a list of users with Google API PHP Client Library 2.0.3. and save them to a CSV file and at the same time I am tracking the process on screen. The code I am using is the ...
7
votes
1answer
84 views

Accessing Google My Business API without login (using service account)

I want to access the locations associated with my account and their reviews, for that I am using the google my business API and I have access to it (it does work on oAuthplayground). Now I want to ...
0
votes
1answer
43 views

Send file directly to google drive using api and input file

I'm uploading files to google drive using api, but actually i have the follow method: Send the file to the server using file input Send file from server to google drive using api I have this coding ...
1
vote
2answers
44 views

Retrive stats app install Play Store Google API in PHP

I'm working on a back office feature it retrieve all monthly app installations stats. I'd like to use an API to automatize it. I'm currently looking for the Google API storage. I found that to get ...
0
votes
1answer
67 views

how to manuplate the google api php client

how to manuplate this code to get the details of book by passing the isbn number of the book $client = new \Google_Client(); $client->setApplicationName("BestBook"); $client->setAuthConfigFile('...
0
votes
1answer
48 views

Ask authorization to use only first time to use calendar

I wanna only ask to the user one time to access the account. I have the token but after 3600 seconds the token expires. This is my code (working) "inside" a framework. Someone can tell how can i do ...
0
votes
1answer
44 views

Error: 403, Forbidden error in creating cirlcle in Google plus

Here, I want to create circle in google plus using api. I got https://developers.google.com/+/domains/api/circles/insert link for creating circle. I did my code with perfect. $headers = array (...
0
votes
1answer
42 views

How to fix error sending events to google calender using api in php

I am trying to send events to google calender using api from php. but there is some error always with this. cannot understand what to do next. Here is my code: Fatal error: Uncaught ...
0
votes
2answers
41 views

Error sending events to google calender using api in php

I am trying to send events to google calender using api from php. but there is some error always with this. cannot understand what to do next. Here is my code: require_once './...
1
vote
0answers
51 views

Refresh oauth2 token google api and HWIOAuthBundle

How i can refresh token ? I use Google api with this token - it work but can't find how to refresh it, in this example we dont save expired time. I require `access_type: offline ` then $...
2
votes
3answers
159 views

Error refreshing the OAuth2 token @ Google_CalendarServices (php)

i know there are many similar questions, where the 'invalid_grant' is the only 'answer' we got from google api, but all them are old, or discussing different ways of getting to the same message. The ...
0
votes
1answer
28 views

How does a service account json file look like?

So when creating a service account for an automated system I want to develop for my g-suite, it prompted me to download what I think is the service account credential. I downloaded a file called ...
0
votes
1answer
48 views

HelloAnalytics guzzle error in local

Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/...
1
vote
1answer
52 views

Refreshing Tokens with Google API for Google Calendar v3

I'm trying to use Google API (PHP) to perform a daily sync between a system calendar and the user's Google Calendars. I want a system user to be able to set up access to their calendar once from ...
0
votes
1answer
82 views

refresh token with google api client not working

In my website i have an upload button for upload files to google drive via api. Here is my code: $auth_code = GOOGLEDRIVE_AUTH_CODE; $access_token = GOOGLEDRIVE_ACCESS_TOKEN; $refresh_token =...
-1
votes
0answers
33 views

Fatal error: Call to a member function getAttributes() on boolean in C:\xampp\htdocs\Google\app\class\google_auth.php on line 52

I have a problem trying to use google/apiclient Fatal error: Call to a member function getAttributes() on boolean in C:\xampp\htdocs\Google\app\class\google_auth.php on line 52 i dont know what's ...
0
votes
0answers
42 views

Uncaught exception 'Firebase\JWT\BeforeValidException' with message 'Cannot handle token prior to 2016-11-03T21:37:13+0100'

Hello I have a problem trying to use google/apiclient Fatal error: Uncaught exception 'Firebase\JWT\BeforeValidException' with message 'Cannot handle token prior to 2016-11-03T21:37:13+0100' in ...
0
votes
1answer
58 views

Uncaught exception 'InvalidArgumentException' with message 'invalid json token'

Hello I have a problem trying to use google/apiclient Fatal error: Uncaught exception 'InvalidArgumentException' with message 'invalid json token' in C:\xampp\htdocs\Google\vendor\google\apiclient\...
-1
votes
0answers
58 views

Uploading files from form with Google Drive PHP API

Can anyone give a fully working PHP example on how to upload file with Google Drive API? On the official site of Google SDK, all the examples are outdated, and so on GitHub examples of google php api. ...
2
votes
2answers
65 views

Add `alt` parameter while generating reports from AdExchange Seller API

I'm trying to retrieve a report from the AdExchange Seller API. I am using the maximum allowed amount of dimensions and metrics so the reports is quite big (>100.000 rows). According to the ...
0
votes
1answer
52 views

How to delete folder drive api

I am unable to delete a folder (created by another person) even if I try to change the rights, I have a console application and the current authenticated user can do the following : create folders/...
1
vote
1answer
64 views

Insufficient authentication scopes error using Google API

I set up Google SDK to use Google API with Application Default Credentials. For my local machine, created a credentials json file and set its path as GOOGLE_APPLICATION_CREDENTIALS as environment ...
1
vote
1answer
58 views

How to retrieve data from multiple Google Analytics accounts using Google API?

I have a web application that gives its users the option to grant it offline access to the user's Google Analytics account. The problem I run into is that when I need to output data from multiple ...
1
vote
1answer
50 views

PHP Google Analytics server to server OAuth get Refresh Token

I'm trying to get a refresh token from Google's authentication server for use with the Google Analytics API in a server side authentication with a Service Account Credential using the official Google ...
0
votes
1answer
27 views

Google API setApplicationName insert value

I have a problem with setting up the Google API with php. See the code below: $client = new Google_Client(); $client->setApplicationName("MY_APP_NAME"); What do I have to use for "MY_APP_NAME", ...
0
votes
1answer
27 views

Website user connected with their gmail account permanently If user allowed to access their data

I am explore google calendar api to synchronize user google events with my website events.First I was done with to login with gmail and get permission from user account offline access. My code is ...
0
votes
1answer
129 views

Google Analytics Reporting API V4 with “Request had invalid authentication credentials”

We use this walk through, to set up our tool. Hello Analytics Reporting API V4; PHP quickstart for service accounts Here is the example from the walkthrough https://advertisebg.com/report1610/GA/...
0
votes
1answer
113 views

Google API PHP - OAuth Issue - “Request had invalid authentication credentials”

I am I am trying to get Google's API PHP client working with OAuth so that I can access Analytics and Search Console Data. I have been following the example here from Google. I get sent to Google to ...