Skip to content
Advertisement

Tag: google-api-php-client

Google API – Auth server to server

I need a service to manipulate emails in a gmail account within a project developed in PHP Symfony… I found this example : https://github.com/googleapis/google-api-php-client/blob/main/docs/oauth-server.md But more confusing than helping… I wrote this code : src/Service/Gmail.php Then I followed the steps described in Google Workspace for developers : Create a new project : https://developers.google.com/workspace/guides/create-project?hl=en Enable Gmail API : https://developers.google.com/workspace/guides/enable-apis?hl=en Create credentials

Google Oauth request results in invalid grant error

We have an app with offline access_type token. Yesterday all queries were broken, because authorization failed resulted in a 400 Bad Request response: { “error”: “invalid_grant”, “error_description”: “Bad Request” }). We use SDK Google Ads API Client Library for PHP for any queries to API. Code example: App is in production in google cloud console. What have we already done:

Google Api PHP Client Syntax Error on PHP 7

OS: macOS Big Sur PHP version: 7.4.1 Package name and version: google/apiclient: ^2.12.3 Whenever I switch the PHP version to 7.4.1 I get this error Parse error: syntax error, unexpected ‘static’ (T_STATIC) in /Users/webtechstreet4/Local Sites/fvtest/app/public/wp-content/plugins/form-vibes-pro/vendor/psr/cache/src/CacheItemInterface.php on line 75 The library works great on PHP 8 but gives the above error when switching to PHP 7. Screenshot Answer Actually, I sorted

Updating spreadsheet data with Google Spreadsheet api and php suddenly not working with authentication error

In a form which takes input and updates the value in a spreadsheet. It was working fine before but suddenly stopped working with this error message: According to other questions and answers it is because of authentication problem, but the form was working for 5 years with the same authentication so it is confusing. Is there any other reason for

Client is unauthorized to retrieve access tokens using this method – Google calendar php api

I have read a lot of articles : Google Calendar API – PHP https://developers.google.com/calendar/quickstart/php and others.. I want to use the service account, I gave permissions for my calendar, I have downloaded the json key. If I use the code from Google, I got: missing the required redirect URI If i use the code: I have: Client is unauthorized to

Advertisement