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

Alternative to using the Google API PHP Client

I have set up a Google Connect for my website using a combination of the Google JS API and the Google PHP API. The entire PHP API consists of 16MB+ of PHP files, tremendously slowing down my local development environment. I want to remove all this…
0
votes
0 answers

How to authenticate a php application hosted on a non-Google server with Google Cloud KMS

I've been trying to understand how to use the Google Cloud Key Management System and have worked through the quick start tutorials and documentation. I created my key rings and their individual keys and tested them using the SDK on my laptop and…
0
votes
1 answer

How to get the access token to register iOS device in Google API with Firebase

I am working on Firebase message implementation to my php project. I am able to get the token for Android device by using $result = $this->guzzle->request('GET',…
Kishore
  • 352
  • 1
  • 3
  • 19
0
votes
1 answer

PHP array oddity when adding rows to google sheets

I have used hours with google and trial and error but cant find an answer or good solution. My coding skills aren't that great so this might be obvious to gurus... Please somebody tell me what is going on :D I am writing an order from webshop to…
0
votes
1 answer

Accessing Google Sheets API array in PHP with named array keys

Using the following basic Google Sheets API code: $client = getClient(); $service = new Google_Service_Sheets($client); $spreadsheetId = 'xxxxxxxxxx'; $offersrange = 'Leads'; $offersresponse = $service->spreadsheets_values->get($spreadsheetId,…
ctrlbrk
  • 1,174
  • 2
  • 17
  • 27
0
votes
2 answers

Get new acess_token after 3600 seconds

I'm trying to use google analytics api. I've already added the service account email that was created to the user list for the Google Analytics account in question. I got the access_token and the refresh_token. But I do not know how to get the new…
0
votes
1 answer

Google Drive API - Crash when setting permissions

I'm using the Google Drive api for php and trying to copy files to a specific folder and give them permissions. When i try to execute it with debugger on no problem, the rights are set to the good users. But when i try to execute it "normally" the…
0
votes
2 answers

Google API My Business + PHP + Laravel - class not found

I use OAuth 2.0 flow + google-api-php-client + Mybusiness PHP Classes, but I got errors 'class not found', see below: use App\Vendors\Google_Service_MyBusiness as MyBusiness; .... $gClient->setAccessToken($access_token); $oauth2 = new…
0
votes
0 answers

update values on specific google spreadsheet with google-api-php-client (version 2- without composer)

For below code I am using https://github.com/googleapis/google-api-php-client library (Client Requirement - this library must be used without composer). So now come to the requirement - my client want to update data rows from mysql to google…
Pooja Choudhary
  • 160
  • 1
  • 2
  • 14
0
votes
2 answers

How to redirect after google login using codeigniter?

controller: public function login() { if($this->session->userdata('loggedIn') == true) { redirect('profile'); } if(isset($_GET['code'])) { if($this->google->getAuthenticate()) { $gpInfo =…
0
votes
1 answer

YOUTUBE DATA API: Like comment of another uer

I'm using PHP with google api client libraries. I have gotten a list of comment. I want to like/dislike, hide or reply comment. Please, help me! Thanks!
0
votes
2 answers

Get Google Calendar events that start and end between two dates

As show in the picture I want to get all events that are in the range (start and end) of my 'My Free Time' event. In this case there are three events that meet the requirements ('Learning for Exam', 'Homework', 'Coffee'). The 'Running' event start…
0
votes
1 answer

How to merge cells using the PHP version of the Google Sheet API v4

I've succesfully set up my credentials and access following the Quickstart guide & the API v4 documentation. Everything works great, I successfully tried to: Update the spreadsheet title Read/write values in each cell etc. However I keep getting…
Bruno Leveque
  • 2,647
  • 2
  • 23
  • 33
0
votes
1 answer

Get All Users password of Google Apps Account Using PHP Client Library

I know guys get account details.But if i try account details received except password. My code is: $optParams = array( //'customer' => 'www2', 'customer' => 'my_customer', 'maxResults' => 50, 'orderBy' => 'email', ); $results =…