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

how to query custom dimension google anaylitics api

I have setup a custom dimension in google analytics 'dimension2' into which I want to capture a WPForms UniqueID. I added this to Google Tag manager and I can see the custom dimension with a value when I preview site in GTA preview. . I added this…
0
votes
1 answer

How can I get a list of published coursework from a class while authenticated as a student on google classroom API?

As stated in the question, I am trying to get a list of all published coursework from my classes. I have used googles "PHP quick start" page in the classroom API documentation (https://developers.google.com/classroom/quickstart/php) to get me…
0
votes
0 answers

google api how to share a folder in PHP

For the google api I use the library https://github.com/googleapis/google-api-php-client I can 't figure out how to create a shared folder? Or give access to an already created folder? Here is the code for creating folders: if ( isset(…
0
votes
1 answer

Google API: Can I authenticate a specific user with PHP Client?

Users in my app are connecting their Gmail accounts. I have a feature that allows them to disconnect and then before totally deleting the integration and all the data associated with it they can reconnect. I'm using OAuth 2 authentication…
Full Stack Alien
  • 11,244
  • 1
  • 24
  • 37
0
votes
1 answer

google adwords API authorize request

I'm developing an integration between existing CPA system and Google AdWords. Conversions are stored in the system, and the goal is to periodically, as a background task, parse conversions and send them to user's Google Ad account. Here's what I…
J.Doe
  • 113
  • 1
  • 1
  • 7
0
votes
2 answers

Access Google Calendar API using Application-Specific Password

I'm working on a cron script to check my Google calendar on a daily basis. I'd like to know if it's possible to use Application-Specific Passwords (see: https://support.google.com/accounts/answer/185833?hl=it) and insert the generated password in my…
0
votes
0 answers

firebaseio.com refusing connections after many requests

I use PHP CURL for making changes to the Firebase database. After many curl requests, suddenly, Failed to connect to something.firebaseio.com port 443: Connection refused error occours. After few hours, it starts working again. Following is the curl…
0
votes
1 answer

Google's service directory listUsers isn't returning any users

According to the docs I should be able to search on the alias email address. The code above doesn't return any users. I know that this alias (myusername@mydomain.com) exists in my account because I can see it and set it up manually yet the api isn't…
Chris
  • 4,643
  • 6
  • 31
  • 49
0
votes
1 answer

GoogleFit Google_Service_Exception: 401 Login Require

Am trying to get steps covered registered user on a previous date from google fit datastore using the google fit API, this solution works well when I run it manually, but as soon as I plug it in into a scheduler to run automate it throws an error.…
0
votes
1 answer

Can I get google new access token using refresh token if expired

I want to fetch Google reviews using the Google business API on my WordPress Website. As we know that an access_token is required, but it always expires after 1 hour. Does anyone know how we can fetch the new access_token using refresh token? For…
mgo
  • 1
0
votes
1 answer

Google Fitness API in php

$user = Socialite::driver('google')->user(); // Set token for the Google API PHP Client $google_client_token = [ 'access_token' => $user->token, 'refresh_token' => $user->refreshToken, …
0
votes
1 answer

How to reload a users authorization

I am using the Google Calendar API. I authenticate the user on the index page to log the $_GET['code'], I have to do it at the index because I need get variables to add an event from php. I have the impression that the token is changing and causing…
0
votes
1 answer

google drive file.list query returns false for sub-folder ID - php

I'm able to list the items present in a folder located in root of google drive using the following function. but when I try to list items in a sub-folder located inside a parent folder (parent folder is in root of google drive) [PARENT FOLDER]…
toddash
  • 167
  • 2
  • 17
0
votes
1 answer

PHP Google Sheets API v4 Most efficient way to get all formatting - conditional, dates, etc - from preceeding row and apply to a new row insert?

Good day folks! What is the best way to insert a new row of data and apply the styling from the preceding row? (We are migrating our PHP code to use the Google Sheets api v4 classes) I am currently working my way through this and using…
Mr Davros
  • 100
  • 10
0
votes
1 answer

How to show a progress bar while uploading a file to google drive

I'm writing a php code which allows to upload a file to our GSuite Drive, it works well. To go further, I'd like to add a progress bar while the file is uploaded to Google. I've seen some solutions on the web to create a bar with JS while the file…
A.Rey
  • 35
  • 1
  • 6