Category : google-api

I want to list files and its permissions by this API https://developers.google.com/drive/api/v3/reference/files/list When I set fields to * or explicitly set files(id,name,description,mimeType,parents,trashed, permissions/*)) files(id,name,description,mimeType,parents,trashed, permissions(*)) files(id,name,description,mimeType,parents,trashed, permissions/emailAddress) I will never receive permissions. I am getting this: { "id": "abc123" "name": "Name of file", "mimeType": "application/vnd.google-apps.folder", "trashed": false, "parents": [ "abc1234" ] } Also, I have ..

Read more

On my WordPress project I use the infowindow method of Google API, which allows me to display information by clicking on the pictograms on my map My JS function : async function initFeatures(map_id) { const contentString = // MY DATA const infowindow = new google.maps.InfoWindow({ content: contentString, }); markers[map_id]["parking"] = new google.maps.Marker({ position: feature.position, map: ..

Read more

I’m trying to create events in my google calendar with the google quickadd API I still have the error. 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.", "errors": [ { "message": "Login Required.", ..

Read more

Hello I am trying to get access token using Google api client PHP in CodeIgniter when I load this localhost:8080/google/callback i am getting following error Too few arguments to function GoogleClient::authenticate(), 0 passed in E:wampwwwmyprojectappControllersGoogle.php on line 41 and exactly 1 expected here is code public function callback(){ define(‘GOOGLE_CLIENT_ID’, ‘XXXX’]); define(‘GOOGLE_CLIENT_SECRET’, ‘XXXX’); // Create Client ..

Read more

I need to check if user subscribed to some channel. So i call Subscriptions: list method with channelId and forChannelId parameters. Hidding subscriptions option is disabled for channelId user (Subscriber). I can see forChannelID channel in his subscriptions section using browser. But Youtube API response is empty. Also if i just call it without forChannelId ..

Read more

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