google-apis-explorer

Google People API listDirectoryPeople is not returning names for any users in the directory

穿精又带淫゛_ 提交于 2021-02-11 12:29:40
问题 The api found here: https://developers.google.com/people/api/rest/v1/people/listDirectoryPeople with a readmask of metadata, names, emailAddresses is not returning names for any of the users in the directory anymore using the interface found on that page. It used to return names this is a change in the last week. Any ideas? 回答1: I opened another post with a related problem. This solution works to me: you have to register to Google Currents in order to get your name for your user. I hope that

Not able to get formated_address 'only in English' getting some part of result in regional language

纵饮孤独 提交于 2021-02-10 23:28:30
问题 I'm getting some part of google map result in regional language need complete result in ENGLISH I have tried hitting map's API with changing the language to 'en' and region to 'IN' $geocode=file_get_contents(https://maps.googleapis.com/maps/api/geocode/json?latlng=12.9415554,77.5595728&sensor=false&key=MYAPIGOOGLEKRY&language=en&region=IN); $geocode_arr=json_decode($geocode,true); if(array_key_exists("0",$geocode_arr['results'])){ $arr_exp=explode(",",$geocode_arr['results'][0]['formatted

How to know through APIs who created the file in Shared Drive (Team Drive) in Google Drive

混江龙づ霸主 提交于 2021-02-10 22:24:44
问题 All the files in Shared drive (Team Drive) in google drive are accessible by all users who have access to Shared Drive (Team Drive). When a new file is created in a Shared Drive(Team Drive) by default all the users with access to Shared Drive(Team Drive) will become owners as well. Question : when we list the files using APIs inside a folder in Shared Drive (Team Drive), how to detect who created the file ? 回答1: You can use the Revisions API So, if you list the revisions of a file specifying

Properly way for obtaining the N latest videos of channel : search vs playlistItem vs activities endpoints

让人想犯罪 __ 提交于 2021-02-08 10:21:09
问题 I'm developing for a web app that needs to retrieve the last 10 videos of a user(channel). First approach Was to use the search endpoint with param 'forMine' ordering by date, but then I figured that maybe that param could retrieve videos uploaded by the user in a diferent channel or whatever... First result with channel ID and date - 1st Aproach Second approach Was to use the search endpoint with param 'channelId' ordering by date, but then I realized that descriptions were incomplete and

G Suite Admin API to access drive of all users

十年热恋 提交于 2021-01-28 05:36:05
问题 I need to access all the files from the google drive account of all the G Suite user account from admin account. Using Google Apps Admin SDK API, I can access information of all account but unable to access their Drive. I have seen admin can access google drive of all the users by admin console UI, but unable to find API for same. I can access google drive from individuals access token with this API, but not of all users by admin token. Can anyone please help me into this? 回答1: For this you

How to use the “KeepRevisionForever” property to keep all file versions

强颜欢笑 提交于 2021-01-28 04:41:18
问题 I've recently loaded documents into Drive in C#, but was not aware of the KeepRevisionForever property. Now that I'm trying to upload newer versions of the documents, I'm trying to set this property to true , but it looks like it will only keep this property for the latest update. I.e., I'll upload up to version 5, but the KeepRevisionForever property is only set for version 4, not versions 1 - 3. Can the API allow for keeping revisions for all updates? Below is the code block where this is

YouTube Data API 'youtube#channel' query: the 'brandingSettings.image' is no longer available as of 11-11-2020?

怎甘沉沦 提交于 2020-12-26 08:32:33
问题 Using the YouTube Data API, doing a 'youtube#channel' query, the brandingSettings.image is no longer available as of 11-11-2020? Has anyone else noticed this? Will there any way to get the brandingSettings.image.bannerImageUrl going forward? This is the API URL that used to return a channel's bannerImageUrl : https://www.googleapis.com/youtube/v3/channels?part=brandingSettings&id=UCXGgrKt94gR6lmN4aN3mYTg&key=[your key] . Thanks, -Keith 回答1: Indeed, the official API revision history doc

Unable to send mail using gmail api node js

风格不统一 提交于 2020-12-13 02:59:29
问题 I have followed gmail api for sending email. I am getting error as: "message": "400 - \"{\n \\"error\\": {\n \\"errors\\": [\n {\n \\"domain\\": \\"global\\",\n \\"reason\\": \\"invalidArgument\\",\n \\"message\\": \\"'raw' RFC822 payload message string or uploading message via /upload/* URL required\\"\n }\n ],\n \\"code\\": 400,\n \\"message\\": \\"'raw' RFC822 payload message string or uploading message via /upload/* URL required\\"\n }\n}\n\"" Here is the piece of code I have written for

Unable to send mail using gmail api node js

独自空忆成欢 提交于 2020-12-13 02:59:14
问题 I have followed gmail api for sending email. I am getting error as: "message": "400 - \"{\n \\"error\\": {\n \\"errors\\": [\n {\n \\"domain\\": \\"global\\",\n \\"reason\\": \\"invalidArgument\\",\n \\"message\\": \\"'raw' RFC822 payload message string or uploading message via /upload/* URL required\\"\n }\n ],\n \\"code\\": 400,\n \\"message\\": \\"'raw' RFC822 payload message string or uploading message via /upload/* URL required\\"\n }\n}\n\"" Here is the piece of code I have written for

How to use Google Photos API Method: mediaItems.search in Google apps script for a spreadsheet

雨燕双飞 提交于 2020-11-29 09:04:27
问题 I really tried to figure this out on my own... I am trying to load photo metadata from google photos into a sheet using the Google Photos API and google apps script. I was able to make some progress after a lot of help on a previous question Is it possible to load google photos metadata into google sheets? I now have two functions. function photoAPI_ListPhotos() - Uses Method: mediaItems.list and gives me all my photos that are not archived function photoAPI_ListAlbums() - Uses Method: albums