All Questions
Tagged with google-api google-api-php-client
916 questions
1
vote
1
answer
52
views
Google Calendar Add Event in PHP
I am new to Google Calendar API, and am having a tough time getting the program to work. I am trying to build a webpage to allow other users to book appointments, and the appointment will be auto ...
0
votes
1
answer
42
views
Creating google user in php: Not Authorized to access this resource/api
I want to create a google workspace user for my organization from PHP google library, but my code show a 403 error:
{ "error": { "code": 403, "message": "Not ...
0
votes
1
answer
49
views
Get file name from id with Google Drive PHP Library
I'm using the Google PHP Library with a service account and I'm trying to get the name of a document in a shared team drive by using the document ID. The service account is a content manager on the ...
1
vote
1
answer
902
views
Google Meet REST API Permission denied on resource Space (or it might not exist) error
I have just configured everything in google cloud console, i am using service account as auth method and i download key file as json. But i am getting this error
"Call failed with message: { &...
0
votes
0
answers
63
views
Google API list reviews - 403 forbidden
I'm trying to implement fetching Google reviews for my business in Laravel using google/apiclient but I keep getting response code 403 Forbidden after my GET request.
$client = new Google\Client();
$...
0
votes
0
answers
30
views
google drive api to fetch specific subfolder inside the root one
Since I'm working with the Google Drive API, I was able to use the code below to fetch the data from the Google Drive inside a folder. However, I'm wondering if there's a way to specify the subfolder. ...
0
votes
1
answer
201
views
Google analytics admin api : The caller does not have permission
Edit : i just add email service account in my dashboard analytics user admin, and its working
So I would like to use google API to create property with datastream. (using laravel)
And I have one issue ...
0
votes
0
answers
66
views
Create google API creds for Gmail account not service account
i have a code that uses creates a google document:
public function create_content_document(Request $request)
{
$data = $request->all();
$contentId = $data['id'];
// ...
1
vote
0
answers
92
views
Google ID Token verification fails in PHP, but works with tokeninfo endpoint
I'm encountering an issue verifying a Google ID token using the PHP API. The tokeninfo endpoint successfully verifies it, but $client->verifyIdToken($id_token) returns false in my PHP code. I have ...
0
votes
0
answers
67
views
I get a 400 error when accessing the Admin SDK Api
I use GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/orgunits to get information about all organizers. I use the service account to authorize requests.
But I get an error ...
0
votes
1
answer
485
views
GoogleAPI deprecated Return types
I recently updated PHP to version 8.1 on one of my systems. I have also updated Composer version 2.6.5 2023-10-06 10:11:52, using 'composer update' command (see output:)
> composer update
Loading ...
0
votes
0
answers
254
views
Google Apps Script API: Internal error encountered when creating deployments via POST request
I am trying to create a deployment for a Google Apps Script project using the Google Apps Script API. I am issuing a POST request to https://script.googleapis.com/v1/projects/{scriptId}/deployments as ...
1
vote
2
answers
150
views
Google Drive API PHP resumable
I am using dropzone js with chunking to take a large file and break it up, each one of those pieces are getting sent to PHP and all the pieces of that large file have a mime type application/octet-...
7
votes
2
answers
14k
views
Getting Precondition check failed - when using gmail api with a service account
I'm trying to fetch the gmail inbox directly from backend by a cronjob, with no browser or oauth thing.
here is the error i get
Google\Service\Exception: {
"error": {
"code": ...
2
votes
1
answer
508
views
PHP BetaAnalyticsDataClient runRealtimeReport empty
If I try the following it ends up empty -- Even though when I log into GA Analytics it will show 2 or 3 current active users in the last 30 mins. (which is the data I am trying to get back)
use Google\...