Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7950583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:19:12+00:00 2026-06-04T02:19:12+00:00

How about using this API? developers.google.com/google-apps/documents-list It seems to be able to access the

  • 0

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 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:19:14+00:00Added an answer on June 4, 2026 at 2:19 am

    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 history
    //resource_id is the id of the doc
    function getRevisionHistory(resource_id){
      var scope = 'https://docs.google.com/feeds/';
      var fetchArgs = googleOAuth_('docs', scope);
      fetchArgs.method = 'GET';
      var url = scope + 'default/private/full/'+resource_id+'/revisions?v=3&alt=json';
      var urlFetch = UrlFetchApp.fetch(url, fetchArgs);
      var jsonFeed = Utilities.jsonParse(urlFetch.getContentText()).feed.entry;
      return jsonFeed
    }
    
    //Google oAuth
    //Used by getRevisionHistory
    function googleOAuth_(name,scope) {
      var oAuthConfig = UrlFetchApp.addOAuthService(name);
      oAuthConfig.setRequestTokenUrl("https://www.google.com/accounts/OAuthGetRequestToken?scope="+scope);
      oAuthConfig.setAuthorizationUrl("https://www.google.com/accounts/OAuthAuthorizeToken");
      oAuthConfig.setAccessTokenUrl("https://www.google.com/accounts/OAuthGetAccessToken");
      oAuthConfig.setConsumerKey("anonymous");
      oAuthConfig.setConsumerSecret("anonymous");
      return {oAuthServiceName:name, oAuthUseToken:"always"};
    }
    

    To play more with DocsList API, you can see some more example on my Google Site
    https://sites.google.com/site/appsscripttutorial/urlfetch-and-oauth

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While browsing I came across this blog post about using the Wikipedia API from
I can make a search query using these tokens here: http://developers.facebook.com/docs/api#search in the links:
I am using Graph API https://developers.facebook.com/docs/reference/api/#publishing with PHP SDK and I would like to
I've followed the instructions on http://developers.facebook.com/docs/api#authorization using the standard PHP library. Everything works fine
I am using this function https://www.php.net/sys_getloadavg to get a hint about my server load.
I read at Scottgu blog about using OutputCache for a function but this didn't
There are a lot of posts on here about this, I'm using this code
i can't figure out about working with I/O. I am using this code to
How is SAML SSO typically implemented? I've read this (n.b. obsolete) about using SAML
I was reading about data driven testing using mbunit from this article. http://blog.benhall.me.uk/2007/04/mbunit-datafixture-data-driven-unit.html I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.