google-docs-api

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

删除回忆录丶 提交于 2019-12-20 06:45:04
问题 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=

Google Drive SDK Update (delete/insert) Owner Permission 500 Error in Try It Demo

夙愿已清 提交于 2019-12-18 17:17:09
问题 I am developing an app that should provide a Google Apps Admin the ability to reassign ownership on files. Currently I am using the Google Drive SDK for .NET with C# code. When I authenticate in the Google Drive SDK test demo at https://developers.google.com/drive/v2/reference/permissions/insert and fill in the FileId of a file belonging to the Admin and try to insert another owner from the same Google Apps domain I get a 500 internal server error. I'm using these values: POST https://www

Customize CSS of Google Docs Viewer

ⅰ亾dé卋堺 提交于 2019-12-18 13:48:10
问题 How do i customize the CSS of the google docs view iframe? I realize that the iframe is getting the content from a cross domain source which i do not control, i was just wondering if anyone has some sort of hack around this? 回答1: I asked this so i could post the solution. Its totally hacky and based off of a an answer from another thread on SO. I had to make a few modifications to get it working because the answer linked above didn't quite work with google docs. Basically you proxy the

How can I add a Google apps script to a spreadsheet created using the API?

孤人 提交于 2019-12-18 12:00:09
问题 After reading up a lot on the Google Spreadsheet API I have come to the conclusion that formatting (such as merging cells, changing fonts etc) is only available throught the Apps scripts. Since we need to create and fill the spreadsheets with data programatically using Java on the back-end I guess I need to somehow either; link the new sheet to a Apps script that trigger on-load or create a Apps script that creates the spreadsheet for me. Anyone knows? 回答1: If you want to just "create" the

Google Drive Api not returning results by descending order of number of occurrences of word

 ̄綄美尐妖づ 提交于 2019-12-18 09:49:28
问题 I am using Google Documents List API for searching within documents. Searching on the google drive ui returns results with most number of occurences of words first. But with api it returns the results with last uploaded date first. This is the URL which i am using https://docs.google.com/feeds/default/private/full?q=search+term I also tried with https://docs.google.com/feeds/default/private/full?q=search+term&desc=true but this gave the same results that we were getting earlier i.e. by last

Can a Google Apps Admin manage users files with Drive SDK?

落爺英雄遲暮 提交于 2019-12-18 04:50:55
问题 The new Drive SDK is very good for the authenticated user. Is it possible use Drive SDK using Google Apps administrative access to impersonate other domain users? The doclist API can do it but it's not possible manage and copy files (pdf, jpg) with this tool. I'm using Java with this code: credential_origine = new GoogleCredential.Builder().setTransport(HTTP_TRANSPORT) .setJsonFactory(JSON_FACTORY) .setServiceAccountId("[email from console api]") .setServiceAccountScopes(DriveScopes.DRIVE)

Remove sign in button in google docs webview in android

坚强是说给别人听的谎言 提交于 2019-12-17 21:02:57
问题 I am showing PDF files by using google docs in WebView in android. How to remove or hide "Sign In" button? I have attached screenshot below. Thanks in advance. webview = (WebView) findViewById(R.id.webView1); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl("https://docs.google.com/viewer?url=http://www.ex.com/terms.pdf"); webview.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return

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

╄→尐↘猪︶ㄣ 提交于 2019-12-17 17:17:00
问题 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? 回答1: 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

Google Drive\Docs API for Android

只谈情不闲聊 提交于 2019-12-17 07:12:41
问题 I integrated Dropbox with my app in a matter of hours as the SDK was clearly described and had good examples of usage. Google Drive seems to only have a "one size fits all" Gdata SDK which is very heavy (with the many dependencies, it triples the size of my app) and not very intuitive as it is so low level. I'm sure it makes perfect sense when you know how to use it but as I cannot find any real samples of usage I am really struggling. Are there any sample apps available that I can look at

Google Drive\Docs API for Android

a 夏天 提交于 2019-12-17 07:12:15
问题 I integrated Dropbox with my app in a matter of hours as the SDK was clearly described and had good examples of usage. Google Drive seems to only have a "one size fits all" Gdata SDK which is very heavy (with the many dependencies, it triples the size of my app) and not very intuitive as it is so low level. I'm sure it makes perfect sense when you know how to use it but as I cannot find any real samples of usage I am really struggling. Are there any sample apps available that I can look at