Skip to content
Advertisement

Tag: google-api

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 Chat API. Can’t create space. Method not found

I’m trying to create a google chat space via making a post request to https://chat.googleapis.com/v1/spaces with Guzzle. In response I’m getting: But if I change the body of the request and add some new invalid fields like this: I’m getting the next response: docs: https://developers.google.com/chat/api/reference/rest/v1/spaces/create What’s wrong with my original request? Thanks. Answer The spaces.create documentation explains this at the

How we can share a google docs link with others without requesting access using PHP?

Is it possible to share a google docs link to others so that they can see and edit my google docs without requesting access. I already gone through this link https://developers.google.com/drive/api/v3/reference/files for “webView link”. But I am not getting it how to use it in my code using PHP so that I can share my google docs without requesting access.

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