Skip to content
Advertisement

Tag: google-oauth

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:

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