Category : google-api

I would like to be able to setup google calendar push notifications in my local. Google calendar documentation requires domain registration https://developers.google.com/calendar/v3/push#registering-your-domain. I would like to know if there is any workaround to make this work in the local environment using a virtual host accessible only in my local machine. If that’s impossible I would ..

Read more

I do this steps: Take token from https://oauth2.googleapis.com/token using auth code Its success and shows me access_token, expires_in, refresh_token and etc Then i use it to check with API opening https://www.googleapis.com/oauth2/v3/userinfo?access_token=xxx All works perfect. I see my information. Then i revoke token with https://oauth2.googleapis.com/revoke and get success answer with 200 code Try again step 3, ..

Read more

I’m new to this API and currently trying to send email by Gmail. I have Laravel installed and required by composer google/apiclient:"^2.7". That’s how I call create message and send functions $message = $this->googleApi->createMessage($user->name, $user->email, ‘An email’, $text); $client = new Google_Client(); $service = new Google_Service_Gmail($client); $userId = ‘my-google-id.apps.googleusercontent.com’ $sendMessage = $this->googleApi->sendMessage($service, $userid, $message); class ..

Read more

I’m new to this API and currently trying to send email by Gmail. I have Laravel installed and required by composer google/apiclient:"^2.7". That’s how I call create message and send functions $message = $this->googleApi->createMessage($user->name, $user->email, ‘An email’, $text); $client = new Google_Client(); $service = new Google_Service_Gmail($client); $userId = ‘my-google-id.apps.googleusercontent.com’ $sendMessage = $this->googleApi->sendMessage($service, $userid, $message); class ..

Read more