google-api-v3

google drive api v3 update description

回眸只為那壹抹淺笑 提交于 2021-02-10 22:18:28
问题 google drive api v3 I need to change the description of an existing object. How do I change just that, leaving the rest unchanged? I am doing by analogy with python. I get the file metadata, add the "description" line to it and execute update. There are no errors, the description simply does not change I don't know much about js, I will be glad if you can help me. thanks function updateFile(fileId) { var request = gapi.client.drive.files.get({ 'fileId': fileId }); request.execute(function

google drive api v3 update description

☆樱花仙子☆ 提交于 2021-02-10 22:15:11
问题 google drive api v3 I need to change the description of an existing object. How do I change just that, leaving the rest unchanged? I am doing by analogy with python. I get the file metadata, add the "description" line to it and execute update. There are no errors, the description simply does not change I don't know much about js, I will be glad if you can help me. thanks function updateFile(fileId) { var request = gapi.client.drive.files.get({ 'fileId': fileId }); request.execute(function

How to read events and delete all events in Google Calendar using API V3 PHP

与世无争的帅哥 提交于 2020-02-02 10:56:10
问题 After hours of reading Google API documentation and searching the web I managed to write a simple PHP function to insert an event into my Google Calendar (if anyone wants the code just ask). However the next thing I want to do is to delete the entire content of my Google calendar. Initially I thought I'd do this by reading all events and then deleting each one, but according to Google I can do this in a single command: $service->calendars->clear($cal_id); However since the Google API

How do I Insert Google Calendar Event using Google Api 3 for any user in the domain?

痴心易碎 提交于 2020-01-17 03:56:10
问题 I am using Google Api v3 (PHP Libraries) and wish to add an event to a user's calendar in our Google Apps domain. I have created a client ID in the Google Developer console and have granted access to it under Security in our Google Apps Admin Console. However, the event will only insert into a user's calendar if the User has previously granted access to the developer account. I do not wish every user in our domain to have to grant the developer account access to their calendar. Is it possible

Google API: YouTube video uplaod error = 403

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-15 09:11:18
问题 I'm getting following error for uploading the video to youtube, YouTube-API-Demo[654:60b] Video Upload failed : Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 "The operation couldn’t be completed. (Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.)" UserInfo=0x16e922e0 {error

Google API: YouTube video uplaod error = 403

谁都会走 提交于 2020-01-15 09:10:15
问题 I'm getting following error for uploading the video to youtube, YouTube-API-Demo[654:60b] Video Upload failed : Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 "The operation couldn’t be completed. (Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.)" UserInfo=0x16e922e0 {error

Google REST API v3 - Revisions:list vs “Show more detailed revisions”

那年仲夏 提交于 2019-12-31 10:46:25
问题 I need to get the detailed list of the revisions for a Google Document. When using the Google API Explorer on: GET https://www.googleapis.com/drive/v3/files/{fileId}/revisions I get only the non-detailed list. Which is the API to call (or the parameter to set) in order to get something similar to what can be seen by pressing Show more detailed revisions ? Update: I tried to "sniff" the browser traffic and I realized that Google Drive periodically requests the revision list to the URL: https:/

Google Calendar API V3 and Ajax : No 'Access-Control-Allow-Origin' header

喜你入骨 提交于 2019-12-18 09:37:49
问题 I'm getting lost with the new Google API V3 and JS calls (to perform Ajax requests). After registering an app in the console, added access to Calendar API, setting API client ID and public API key, added the domains I want to use the app with, I tried this : var feedurl = "https://www.google.com/calendar/feeds/8g7mhfnh0m4t0rrduvt01knnng%40group.calendar.google.com/public/basic?singleEvents=true&key=[MY_KEY]"; $.get(feedurl,function(data){ console.log(data); }); But it returns : XMLHttpRequest

Google Drive Rest API V3 Downloading large files with alt=media option (>25MB)

断了今生、忘了曾经 提交于 2019-12-11 06:28:12
问题 I am trying to figure out how I can download a large file directly in the browser via the Google Drive API V3. I'm using option 1 which is : Download a file — files.get with alt=media file resource When I send my request ( https://www.googleapis.com/drive/v3/files/[fileId]?alt=media), I got the content of the file as a response of it. Currently I'm creating a blob file with the response of my query, then reading the blob file to start the download on the browser. The problem with that is,

Google Drive API v3 : there isn't any way to get a download url for a google document?

十年热恋 提交于 2019-12-06 07:54:59
问题 The Google Drive API v2 to v3 migration guide says: The exportLinks field has been removed from files. To export Google Documents, use the files.export method instead. I don't want to export (download) the file right away. "files.export" will actually download the file. I want a link to download the file, later. This was possible in v2 by means of the exportLinks. How can I in v3 accomplish the same? If it is not possible, why was this useful feature removed? Besides, (similar problem to