Questions tagged [google-api-php-client]

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.

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.

Beta

This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes. If we do remove some functionality (typically because better functionality exists or if the feature proved infeasible), our intention is to deprecate and provide ample time for developers to update their code.

Requirements

  • PHP 5.2.1 or higher
  • PHP JSON extension

Note: some features (service accounts and id token verification) require PHP 5.3.0 and above due to cryptographic algorithm requirements.

Developer Documentation

Google APIs Client Library for PHP

GitHub

2080 questions
0
votes
2 answers

Cannot filter Google Sheet via PHP / google-sheets-API because of faulty criteria definition ("cannot bind a list to map for field 'criteria'")

I'm trying to apply a basic filter to a Google Sheet from my website using the Google-API-PHP-Client. I only want to display rows where the value in column A equals "global_city_actors". Unfortunately, I cannot seem to construct the request…
0
votes
2 answers

Get cell format information from Google Sheets using PHP

I'm reading values from Google Sheets using google-api-php-client and google-api-php-client-services libraries this way: $service = new \Google_Service_Sheets($this->calendarService->getClient()); $spreadsheetId =…
takeshin
  • 49,108
  • 32
  • 120
  • 164
0
votes
1 answer

Unauthorized HTTP Request to Googles DCM/DFA API

$profileID = *******; $id = ********; $accesstoken = 'Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $opts = array( "http" => array( "method" => "GET", 'header' => 'Authorization: Bearer '.$accesstoken. 'Accept:…
Vin...C
  • 1
  • 6
0
votes
1 answer

Error with google Api to get user'sEmail Address

i am using Google_Service_Gmail() to get the users'info. but getting issue "PHP Fatal error: Cannot call constructor on line 84 in '.../service/Gmail.php'" here is code image $obj = new GoogleOAuth(); $obj->access_token…
0
votes
1 answer

Can I add or embed google analytics behavior flow report to my website?

I want to add google analytics Behavior Flow reports(embedded or from api) to my website. Is it possible ?
Bedram Tamang
  • 3,748
  • 31
  • 27
0
votes
1 answer

Problem in GCP setIamPolicy API reference under PHP example

on this page https://cloud.google.com/resource-manager/reference/rest/v1/projects/setIamPolicy Way down at the bottom are come code examples. The PHP code follows. The problem is the line $response = $service->projects->setIamPolicy($resource,…
0
votes
1 answer

Google Indexing API calls keep returning 403 codes

I am trying to send vacancies to the Google Indexing API whenever we receive them from our vacancy provider. However, despite having set all the appropriate permissions, I keep receiving 403 status codes. I have followed the "Prerequisites for the…
Kevin F.
  • 140
  • 1
  • 10
0
votes
0 answers

GMail API "Request Entity Too Large Error 413" for attachment larger than 5MB

I have reviewed some similar questions on stackoverflow, but none of the answers seem to be working for me. Especially I have tried the options ['uploadType' => 'multipart'] and ['uploadType' => 'resumable'] when sending email. It always gives…
Tao Hu
  • 57
  • 1
  • 9
0
votes
0 answers

PHP Google Drive API V3: "Login Required" Error

I'm using Google Drive API v3 in my app. I want to have a simple file upload using the API. But it's giving me an error saying "Login Required" even after logging in and redirected. gdrive_auth.php
0
votes
1 answer

Google api php : Wrong audience in jwt for iOS only

I'm new and only developpeur in my company and they tasked my with clearing some bugs with their mobile app. I'm working with an Ionic app and we have google login option for our users, using cordova plugin "cordova-plugin-googleplus". The problem…
0
votes
1 answer

Use google api client in cakephp 3

I have been trying to use the google api client in cakekphp 3, but not successful on adding the service account json file to my project. The below line is mentioned in:…
udarts
  • 745
  • 1
  • 8
  • 23
0
votes
1 answer

Google pagespeed insights V5 - Minimise Critical Request Depth

I analysed a web page URL with google PageSpeed insights tool. I have a question regarding the audit rule "Minimise Critical Request Depth" which shows what resources are loaded with a high priority in a web page. Below are the metrics data…
0
votes
2 answers

How to append thread messages while reply so that new user can see previous conversation in Gmail Api

I want to send reply message from Gmail Api and it is going fine and the message is threaded or appended to the reciever mailbox (A & B user). But If I add new CC user (we name as C) then the new User should see threaded messages which was…
0
votes
1 answer

Invalid recurrence rule?

Here is the payload that I'm passing to Google Calendar API using cURL: ["start"]=> string(25) "2019-07-01T00:00:00+08:00" ["end"]=> string(25) "2019-07-16T00:00:00+08:00" ["title"]=> string(20) "Google Sync Weekly 4" ["description"]=> …
herondale
  • 729
  • 10
  • 27
0
votes
0 answers

No error / exception raised in Google Cloud Storage call via PHP client returns null

I'm trying to create a bucket in Google Cloud Storage using PHP client library but bucket is not being created (FYI: no gcs function working at all) and even its not returning an error code or exception so I can debug the issue. I have gRPC and…
Rehan
  • 408
  • 1
  • 6
  • 17