google-docs-api

How do I migrate from the Google Documents List API to the Drive API?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 11:49:56
问题 The Google Documents List API is scheduled to be shut down on April 20, 2015 and I need to migrate my code to use the Google Drive API instead. How do I go about this migration? 回答1: Refer to the migration guide determine you how to translate calls to the Documents List API to their corresponding calls in the Drive API. Refer to the Drive API’s documentation for information on how to download libraries and get started. Be aware that support for older authorization methods (ClientLogin,

Reference file in Google drive in Google Spreadsheet

假装没事ソ 提交于 2019-12-10 11:15:36
问题 I have created a folder in Google Drive, e.g. test, and put 3 files inside it a.jpg, b.jpg, c.jpg I want in my Google Spreadsheet under the same account, to access the files, e.g. generate the link to image file, is it possible? e.g. ColA ColB a.jpg [generate link to a.jpg in drive] a.jpg [generate link to b.jpg in drive] a.jpg [generate link to c.jpg in drive] 回答1: Yes its possible. Google for 'host website on google drive' for detailed instructions. Basically first share the folder as

how do i get message list with Gmail Api?

不打扰是莪最后的温柔 提交于 2019-12-09 19:46:50
问题 i want to access list of messages Object: 2.0.0-p481 :008 > g.gmail_api.users.messages.list => # < Google::APIClient::Method:0x41c948c ID:gmail.users.messages.list > i'm new in this API and unable to get how do i use Gmail API. Thanks 回答1: # Google gem "omniauth-google-oauth2" gem "google-api-client" in my model def query_google( email ) self.refresh_token_from_google if self.expires_at.to_i < Time.now.to_i @google_api_client = Google::APIClient.new( application_name: 'Joggle', application

DeleteResource from Google Docs with Python

耗尽温柔 提交于 2019-12-08 18:29:24
I am trying to delete a spreadsheet in Google Docs with this function: def f_DeleteResource(xls_name): """Delete a resource""" client=Auth() for e1 in client.GetResources().entry: e2 = client.GetResource(e1) if xls_name==e2.title.text: client.DeleteResource(e2.resource_id.text,True) And I obtain different errors when I change the first parameter of client.DeleteResource(p1,p2) : client.DeleteResource(e2.resource_id.text,True) : Traceback (most recent call last): File "C:\xmp\D6GDocsDeleteUpload.py", line 164, in <module> main() File "C:\xmp\D6GDocsDeleteUpload.py", line 157, in main f

Create (draw) barcode image from array in google doc using google script

∥☆過路亽.° 提交于 2019-12-08 13:17:28
问题 I need to generate and paste barcode image in a google doc. I've found out how to create a js array, which represents it, using google script. But have no idea how to create and paste an image from this array into google doc. Although it's easy to create an SVG image in a simple web page. Can you please help me? 回答1: If you can get something like a jQuery pluggin to work with the new iFrame HTML service, then you could create the bar code in HTML, then save the image to an image file. Then

Fetching Google Docs Spreadsheet Data using PHP

不羁岁月 提交于 2019-12-08 10:40:20
问题 I am trying to fetch the data from a google docs spreadsheet and I think this should work (also seen similar code in another similar question on here) but the response I get is: Moved Temporarily The document has moved here. with the link to here being: https://www.google.com/a/4playtheband.co.uk/ServiceLogin?service=wise&continue=https://docs.google.com/a/4playtheband.co.uk/spreadsheet/pub?hl%3Den_US%26hl%3Den_US%26key%3D0AuJb1YSvmVn5dGdvUzU2QUJHUGdaTEZNbVI4dVJ6eHc%26single%3Dtrue%26gid%3D0

DocumentList API and GAS. How to marry them?

妖精的绣舞 提交于 2019-12-08 07:35:28
问题 How about using this API? developers.google.com/google-apps/documents-list It seems to be able to access the revision history feed. But the examples are in .NET. How do I apply/use this API in Google Apps Script? Anyone knows how and can shed some light? Maybe a short sample code? Thanks. 回答1: You need to look on the protocol for DocLists API. You can use this protocol alongwith URLFetch and Google oAuth Here is a quick example, which returns the revision history in json format //Get revison

How to run custom function by hovering or clicking on cell in google spreadsheet?

只谈情不闲聊 提交于 2019-12-08 05:44:49
问题 I need help to make a table which will have a cells as product thumbnails and by hovering or clicking on this small image, I want to show the pop up with big image of product. ( Right now it works as hyperlink, but it is not enough ) I know we have a few ways how to run function right now: from a custom spreadsheet function from a trigger (from spreadsheet like on open, on edit or on form submit, or Time driven) from a custom menu (which must be created by e.g. on open) from a custom user

DeleteResource from Google Docs with Python

时光总嘲笑我的痴心妄想 提交于 2019-12-08 05:37:55
问题 I am trying to delete a spreadsheet in Google Docs with this function: def f_DeleteResource(xls_name): """Delete a resource""" client=Auth() for e1 in client.GetResources().entry: e2 = client.GetResource(e1) if xls_name==e2.title.text: client.DeleteResource(e2.resource_id.text,True) And I obtain different errors when I change the first parameter of client.DeleteResource(p1,p2) : client.DeleteResource(e2.resource_id.text,True) : Traceback (most recent call last): File "C:\xmp

Google Docs API Adding a ressource to a collection (Zend/gdata)

百般思念 提交于 2019-12-08 03:29:38
问题 I'm trying to do this following the API documentation there: https://developers.google.com/google-apps/documents-list/#adding_a_resource_to_a_collection With the Zend PHP gdata Framework my code is : $docs->insertDocument($entryFile, 'https://docs.google.com/feeds/default/private/full/folder%3A0B--Zn-zouTFrOXdrV3lRelhuNHM/contents'); Documentation on this method I don't know how to find the correct URI then... The entryFile parameter is the right type, it's the url that cause the problem the