google-docs-api

How to add Header/Footer to with Google Docs API

半世苍凉 提交于 2019-12-02 13:51:35
I want to add header and footer to an existing Google Docs file using Google Docs API . Looking at the documents.batchUpdate ( link ) we can insert text, replace text, add images and table etc by mentioning them in the JSON payload with objects like replaceAllText , insertText etc but I cannot find any way to insert header and footer. Question 1: How can I add header and footer? Question 2: How can I add different header/footer for the first page of document? If not possible, suggestion to use any other API or method (like using MS Word) will be much appreciated. Thank you in advance. How

Why are requests to the Provisioning, Profiles, Reporting, Reporting Visualization, Admin Audit, Email Migration (v1), or Documents List API failing?

我的未来我决定 提交于 2019-12-02 11:17:55
All of my calls to the following Google APIs have started failing: Provisioning Profiles Reporting Reporting Visualization Admin Audit Email Migration (v1) Documents List Has something changed? All the API listed were shut down as of April 20, 2015 as per the deprecation policies of the Admin SDK and Documents List API . Please see the following migration guides for more information on how to migrate: Provisioning API to Admin SDK Directory API Profiles API to Admin SDK Directory API Reporting API to Admin SDK Reports API Admin Audit API to Admin SDK Reports API Email Migration API (v1) to

How to upload/update file by FileStream and ResumableUploader in C#

折月煮酒 提交于 2019-12-02 10:57:05
I wanna upload/update file by System.IO.FileStream in Google Documents List API(C#)? I use two way below: Google.GData.Client.ResumableUpload.ResumableUploader (1) public void UpdateAsync(Authenticator authentication, AbstractEntry payload, object userData) (2) public void UpdateAsync(Authenticator authentication, Uri resumableUploadUri, Stream payload, string contentType, object userData) (1) Success. (2) Failed with 403 Forbidden or another... So, does someone have any sample code about (2)? My Code for (2): This code is edited by sample code from Claudio Cherubino , and it's work for

Importing a HTML table into a google doc using google app script

不羁岁月 提交于 2019-12-02 10:23:12
I'm importing data from JIRA into a Google Doc. One of the fields would be the description, which is basically HTML text. Is there any way to "add" this HTML text on a Google Doc? Or do I really have to parse it manually and create paragraphs, tables, etc.? The HTML could look as follows: <p>Hello There</p> <table class='confluenceTable'> <tbody> <tr> <th class='confluenceTh'> Name </th> <th class='confluenceTh'> Hours </th> <th class='confluenceTh'> Cost </th> </tr> <tr> <td class='confluenceTd'> Some Person</td> <td class='confluenceTd'> 1 </td> <td class='confluenceTd'> CHF 1</td> </tr> <

Programmatically get a Spreadsheet “Publish[ed] on the web”

佐手、 提交于 2019-12-01 23:56:19
For the time being I believe this is a real wall I'm hitting my head on, but let's try: Is there any way to programmatically set a spreadsheet to "Publish[ed] on the web" via GAS, or using any of the Google APIs (Google Spreadsheets, Google Docs List, etc.) and UrlFetch? The goal is to access the sheet feed anonymously. Please note that it is possible to make a sheet "public" (through the Google Docs List: it's a "sharing" option), or using GAS setAnonymousAccess() I think, but as far as I know, not "published", which is a different cup of tea (it's set manually through "File->Publish on the

Can I set a lock on files with google api?

随声附和 提交于 2019-12-01 19:12:31
问题 when I look at Gdrive, there is also a fuse client to mount Gdrive. I wonder, when modifying a file on Gdrive through this client, is the file "locked" or in any other way set to "in use" to prevent others to modify the "original" on the internet? I haven't found anything about this. Isn't there a locking method with Google docs api? Stef Bon 回答1: There is no such feature, but you can use the ETag of the file's entry to ensure that no one else has changed the file since it was fetched. This

Can I set a lock on files with google api?

北城余情 提交于 2019-12-01 17:53:34
when I look at Gdrive, there is also a fuse client to mount Gdrive. I wonder, when modifying a file on Gdrive through this client, is the file "locked" or in any other way set to "in use" to prevent others to modify the "original" on the internet? I haven't found anything about this. Isn't there a locking method with Google docs api? Stef Bon There is no such feature, but you can use the ETag of the file's entry to ensure that no one else has changed the file since it was fetched. This is not exactly the same thing, but it can achieve the same effect of ensuring that changes from one place are

Google Drive API get file Edit URL

眉间皱痕 提交于 2019-12-01 17:31:58
As of 04/20/2015 the Google Documents API v3.0 is deprecated, and will no longer function function on and after this date. So anyone using this API must switch to use the Google Drive API. I have integrated the Google Drive API into my PHP application, but I can not find how to get a EDIT url for a file I have created or uploaded. Previously in the Google Documents API after uploading a file, the response would return a edit url that would be a direct url to edit the file. I am using a service account that uses a generated key by my google developers account at https://console.developers

Google Drive API get file Edit URL

萝らか妹 提交于 2019-12-01 16:23:30
问题 As of 04/20/2015 the Google Documents API v3.0 is deprecated, and will no longer function function on and after this date. So anyone using this API must switch to use the Google Drive API. I have integrated the Google Drive API into my PHP application, but I can not find how to get a EDIT url for a file I have created or uploaded. Previously in the Google Documents API after uploading a file, the response would return a edit url that would be a direct url to edit the file. I am using a

Java - Google API - Publish a document

谁说胖子不能爱 提交于 2019-12-01 12:37:11
I have a problem uploading information using the Google Document API. The task is to upload a document, then publish it right after the upload. The first part I have solved, get a DocsService client, authenticate myself with client.setUserCredentials(userName, password) method, and then upload the content with client.insert(URL, newDocument) . At this point the document appears in my Google folder. My problem is I can't figure out how too publish it. I tried to emulate the POST method (what Google creates when I click publish), but it didn't work. I also tried to use this methodology , but I