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
1 answer

Can i upload a password protected pdf using google drive api?

So i've tried uploading a normal non password protected pdf file and it successfully gets uploaded using the below code. However if i try the same with a password protected file google throws a 400 error code (Bad Request) refrence:…
cjd9
  • 59
  • 6
0
votes
1 answer

gmail api php updatevacation

I use the following code to retrieve the vacation settings. It uses the Google API PHP client library and the Gmail API to gain access to the gmail platform I cannot work out how to set a vacation. Does anyone have some sample code that does this? …
0
votes
1 answer

How to search jobs that I've added through Google Cloud Talent Solution API

I'm using Google Talent Solution API to create jobs under some companyName and these seem to be getting added when I'm listing through API yet they nowhere seem to appear on Google search results or Google Job search page. The location of company &…
0
votes
2 answers

Refreshed Google API does not get file list form drive. Google_Service_Exception (Err 400)

I am trying to connect my web application with Google Drive, using the Google Drive API V2 and Google's PHP client library ("google/apiclient": "^2.0"). My application works fine for first hour. I can get files, uploads files, etc. but after 1 hour…
0
votes
1 answer

google appstore sales report download automation

I'm doing a request with the google api library and trying to download some report to automate the download and import to our system. However I'm running into issues. The error code I'm getting : Google\Cloud\Core\Exception\ServiceException: {…
PaaPs
  • 373
  • 1
  • 4
  • 18
0
votes
1 answer

Google Analytics API v3 > analytics.management.uploads.uploadData Insufficient Permission Problem

I have developed a PHP application which will send refund data to analytics. I want to send the refund via data upload. I use the Google APIs PHP client library so the following code uses the method you can find here:…
Jan
  • 13
  • 4
0
votes
2 answers

retrieve all rows in Google Spreadsheet via API using Laravel

I'm trying to get the data from Google spread sheet by using this library: This tutorial, and I follow this tutorial to configure the setup of API and no any error, but once I tried to implement any of the examples they provide in the above link, it…
Abd AM
  • 119
  • 3
  • 14
0
votes
0 answers

PHP Google API: How do I get clearer debugging information?

I'm using Google API OAuth2 to authentificate my users (and I'm requesting a few scopes such as calendar). This part is working but when I'm trying to access the calendar, I'm getting the following error output: An error occured while fetching…
Jsncrdnl
  • 3,005
  • 5
  • 28
  • 43
0
votes
1 answer

How do i add Gmail API permission massively to my 300+ users?

i've been told that my organization needs a gmail inbox but with specific features (file control, folio tracking, etc) so as i understand reading the docs i can achieve it using the Gmail API (creating drafts, searching attachment documents,…
0
votes
2 answers

403 : Insufficient Permission while creating an folder in google drive api php

I'm implementing google drive api to implement in my application. I did that all code configuration from google-drive-client-php documentation. But I got an this permission error. Please give me any hint for this: $client = new Google_Client(); …
0
votes
1 answer

Download large files with php on appengine onto cloud storage

My appengine project (running on App Engine Standard Environment), uses a media-converter service outside of appengine. I can easily start a new converting job and get notified whenever the job is done. The media-converter delivers a temporary url…
0
votes
0 answers

Uncaught InvalidArgumentException: Invalid token format

I am Integrating Google Calendar Api with PHP using PHP Client Library but when I am running the app through Command then It shows the Invalid Token Format but My ClientID and Client Secret is correct. My code is same as given in Google Calendar…
0
votes
0 answers

to write on google spread sheet after form submit with php and google library

I want to update my google spread sheet after my form submit with php I have used library "google-api-php-client" My code for that is below to authentication with OAuth2 authentication, private function authenticate() { /* *…
hetal gohel
  • 335
  • 9
  • 21
0
votes
2 answers

Google Cloud API PHP Client Authentication using Service Account

I'm working with a project using PHP and need to implement Google Cloud APIs using PHP Client library, but the authentication does not seem to be working for me. I have created a service account and granted the project owner permissions and I don't…
0
votes
1 answer

Google APIs: insufficientPermissions error when looping multiple accounts

I've just updated to the latest version of the google-api-php-client. Can't find the previous version number I was running, but it's from back when it was on code.google.com. Definitely a few years old. Getting this error, under specific…