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

How to get php session data from a google sign in

I am trying to create a website where users login with their google login (https://developers.google.com/identity/sign-in/web/sign-in). The site has multiple pages and gets data for the user from a mysql database. I would like to store the users'…
0
votes
0 answers

Unable to get google analytics data_mcf data after a valid call, shows data but calling getConversionPathValue() return nothing

This is the data I get from google api explorer: "rows": [ [ { "conversionPathValue": [ { "interactionType": "CLICK", "nodeValue": "(not set)" } ] }, { "primitiveValue": "6" }, { …
0
votes
0 answers

Cannot translate with statickidz-api google translate-php

Yesterday everything was working perfectly with translator, but Today i'm getting the next error. Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\apitranslation\vendor\statickidz\php-google-translate-free\src\GoogleTranslate.php…
0
votes
1 answer

AWS web app CORS error

I'm trying to use the Google Classroom API through my AWS EC2 web app (PHP-based), but I keep running into a CORS error. I'm following this tutorial to try and request a new scope:…
BlackBelt2025
  • 441
  • 1
  • 7
  • 18
0
votes
0 answers

Google Calendar API > no notification sent to non-google user account when adding ACL

I am using google calendar APIs (through the official php client) to manage calendars. I have a calendar I want to share with a non-google user, with email (let's say) user1@yahoo.com. So, I have read that I have to add an ACL: $rule = new…
0
votes
0 answers

How to pass google place api image to WordPress post thumbnail

I am working on a project where i need to get google place data and create post of WordPress. For accomplishment of this i need google image to convert as post thumbnail. Can anybody help me in that. Thanks in advance.
0
votes
0 answers

skip inline attachments from gmail api

Requirement is to fetch messages only which have attachments. By making query with has:attachment https://developers.google.com/gmail/api/guides/filtering https://support.google.com/mail/answer/7190?hl=en.I can able to fetch all the message which…
0
votes
0 answers

Uncaught SoapFault exception: [Client] Function ("getUserLists") AdWords API

The following output is returned whenever I try to run the example: AddCrmBasedUserList.php. Other examples like GetAccountHierarchy.php and GetRefreshToken.php works without issue. The example is partially working. It creates a new user list but it…
0
votes
2 answers

google classroom announcements create + php api (materials)

I am using google Classroom google API and Google APIs Client Library for PHP. I can add announcement, but I cannot add materials. I would like to add files to Google Drive, but I have errors even with "link" My code so far: $client = new…
Max Cits
  • 3
  • 3
0
votes
1 answer

Google shopping API: How to update shippingsettings incrementally?

I have a large dataset that I need to push to the account-level shipping settings in Google Merchant Center. I am using the Google Shopping API via the PHP Client Library. If I load a subset of the data and call it once at the end, it works…
0
votes
2 answers

Google Docs Api v2 Invalid grant error with Malformed Auth Code description

I've just installed the Google API 2.0, setup my application and I'm trying to authorize a user but I keep getting this error: array(2) { ["error"]=> string(13) "invalid_grant" ["error_description"]=> string(20) "Malformed auth code." } for…
Abraham Romero
  • 1,047
  • 11
  • 22
0
votes
1 answer

Send user to REQUEST_URI after Oauth Login

I'm using the Google PHP client library to authenticate users into a site. Using very close to the example in the docs However, users are always redirected to the homepage after login, i.e. site.com/. What is the correct way to bounce users to the…
Vinnie James
  • 5,763
  • 6
  • 43
  • 52
0
votes
1 answer

How to integrate Gmail API in php

I want access every thing that comes into the mail from user ( attachment of any type, html in mail body, images in body). For that i am trying to access Gmail API referring from here, I have followed step 1 success fully. But I enable to install…
0
votes
1 answer

PHP Google Adwords API get campaigns

I am using the google adwords API to connect with adwords and list all the campaingns. I am connecting with OAuth to the Adwords account and become an access_token and an refresh_token, which I am saving into the DB. Now I am trying to make this…
Mutatos
  • 1,675
  • 4
  • 25
  • 55
0
votes
1 answer

Initiate un-sampled reports creation in google analytics using Management API

The aim is to extract un-sampled report from Google Analytics Account(Premium account) using the management api. I am unable to create report for more than 20 days of data.I am using only one dimension(custom dimension) and one metric(ga:user) as…
1 2 3
99
100