I’m trying to create events in my google calendar with the google quickadd API. Here is my code: I keep getting the error below. Can someone please tell me why? Fatal error: Uncaught GoogleServiceException: { “error”: { “code”: 401, “message”: “Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.”,
Tag: google-api
Google Calendar API Token not refreshing
For some reason when my token expires I need to delete the file and reconnect again otherwise nothing is working. Is it because the new token is not stored or? I have the following code: Answer It seems that you are not returning client in case the token expired Modify your code as shown in the quickstart for PHP to
Send email by Google API
I trying to send an email using Google API Send email controller look as public function sendMessage() { $client = self::getClient(); $service = new Google_Service_Gmail($…
Getting google calendar, “Service accounts cannot invite attendees without Domain-Wide Delegation of Authority.”
I can create events but when add attendees it returns this error i followed google guide and every thing is done but i can’t figure out what the problem My code I’m using google-api-php-client the error: GoogleServiceException: { “error”: { “errors”: [ { “domain”: “calendar”, “reason”: “forbiddenForServiceAccounts”, “message”: “Service accounts cannot invite attendees without Domain-Wide Delegation of Authority.” } ],
Google calendar meet link not being created automatically via Google Calendar API (PHP)
Google calendar meet link not being created automatically via Google Calendar PHP API. Google Calendar API stopped creating a hangout meeting link automatically. The same code was working a few months back but not not not. Code Answer Solution In order to create the conference data property in an Event you will have to send a request with the ConferenceDataVersion
PHP Google insert calendar event API
I am using this package : https://github.com/googleapis/google-api-php-client I used to get $meet_link like this from the API but suddenly it started throwing error Infact calendar event has been inserted perfectly but I am not getting $event->conferenceData->entryPoints[0]->uri in response. Infact I am not getting this entryPoints object($event->conferenceData->entryPoints) Answer There seems to be an issue with the conferenceData returned when creating an
Method not found. error when using Google my business API
I am getting 404 from accouts list function by using google api client. I have already access token by using OAuth2.0. In addition to this, I already enable the Google My Business API via https://console.developers.google.com for OAuth 2.0. ■Here is environemnt PHP 7.2.3 Ubuntu 18.04 LTS google/apiclient ^2.5 The function I want to execute is as following. https://developers.google.com/my-business/reference/rest/v4/accounts/list I install
Fetch sender email address in Gmail message list API
I’m using Gmail API to fetch email address (of the sender) for last 10 emails. URL: https://developers.google.com/gmail/api/v1/reference/users/messages/list But Users.messages: list API returns message resource (which includes only email ID). And for fetching sender email address, I have to make one Users.messages: get API call for each message resources, that’s increases load time. How can I fetch email address of sender
Google Places Nearby API Success 200, but returns “INVALID_REQUEST” in Laravel
I’m trying to make an iterative crawler for the Google Places API. As anyone who has used their API knows, the response only contains 20 results per page and I’m attempting to get the full list of results so I’ve created an loop which will execute a function if the next_page_token field is present. The most peculiar thing happens because
Google Indexing API – 403 ‘Forbidden Response’
I am making a call to the google indexing API for job postings: When making the call to the API, the response given is ‘403 – Forbidden’ . Any ideas what this error actually means? I have created the service account correctly but cannot replicate success from my dev enviroment. Answer Make sure that you have added the service account