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

Google PHP API Client Require Fail (Without using Composer)

I downloaded the Google API library from here https://github.com/googleapis/google-api-php-client. I unzipped it and uploaded it to my server at '/etc/'. I then put the path in my script as: require_once…
user3783243
  • 5,368
  • 5
  • 22
  • 41
0
votes
1 answer

Creating a dropdown in Google sheets via an API call

I'm trying to create a dropdown menu in Google sheets using the PHP API, but not having an luck and unable to source any examples There is an accepted answer at How to set validation method in Google spreadsheets API but it fails at the final…
0
votes
1 answer

Authorize access to personal GoogleDrive without consent screen

I am trying to upload backup files to GoogleDrive via a cron job. The main issue I am facing is that I have to use a service account to upload the files because as I understand it, an Oauth service will require the use of a consent screen which…
Alex
  • 9,215
  • 8
  • 39
  • 82
0
votes
0 answers

Gsuite reseller API for create admin user for our customers using PHP

I am using google API client service to perform all GSuite API like customer creation, customer subscription, and customer admin user creation. So using the API i could able to create customer, subscription and list users of customers. But only…
0
votes
1 answer

Does fixing a "domain not found" error require a G-Suite account

In a nutshell: is it possible to have a server side script which inserts members in a Google group even if I don't have a G-Suite account? And if yes, what does a Domain not found refers to? In more details I'm trying to help a small NGO to automate…
gturri
  • 13,807
  • 9
  • 40
  • 57
0
votes
1 answer

How to identify the reports type from Google Analytics Reporting API v4 batch request?

Google Analytics Reporting API's batch request feature is really great. We can request multiple reports in a single HTTP request. But results are returned as an array. How do we get the specific report type from that array? $body = new…
Joel James
  • 1,315
  • 1
  • 20
  • 37
0
votes
1 answer

Correct class to use when creating a new shared drive

I am trying to create a new Shared Drive using the Google PHP API. I am using the code which is in the Google API docs (https://developers.google.com/drive/api/v3/manage-shareddrives) but this is returning an error. require_once…
0
votes
1 answer

Google MyBusiness API PHP Locations

its my first Google MyBusiness API encounter. Im trying to retrieve account locations but ive got nothing. I dont have direct access for account, my client gave me access to API by json file. $client = new…
0
votes
0 answers

Getting a 403 error on Google Indexing API

I want to execute on "Google Indexing API" Code.
0
votes
1 answer

How to get query details FROM Webmaster tools API in PHP

the new api webmasters tools is not mentioned how to get the details of queries in php. Here is my code to get the queries, but I dont know how to get for each query the details :
0
votes
0 answers

How i can get ecommerce data from google api?

I use PHP Google Analytics library https://github.com/googleapis/google-api-php-client But, now i need fetch data from Google Ecommerce.
0
votes
1 answer

GSuite API service account - verifying impersonated user credentials through API

We are integrating Google Calendar with our room booking system. Users in GSuite domain should login on our reservation screen and book a room. So far I made use of an service account with domain wide delegation to impersonate the users (the…
0
votes
1 answer

Google Cloud Vision ImageAnnotator Google Application Credential File Not Exist Codeigniter PHP

I have try to implement the google cloud vision with API ImageAnnotator using a codeigniter PHP. I have install the require google cloud vision using a composer to my third party directory in codeigniter. This is the code looks like in my controller…
0
votes
1 answer

How to create the Product groups (Product Partition) using php client library of google ad words API?

I am working with Google AdWords API to create ad groups and product groups (Product partitions) using the PHP client library provided by Google team. I have successfully created the ad groups using that library. But I am stuck at the point to…
0
votes
1 answer

Create Team Drive for a user using a service account

I am creating an admin panel that creates a G Suite user account using Google API with a PHP SDK. I am done with the part in creating a user but now I am left wondering how can I create a Team Drive for the newly created user? I can't see a…