Why are there two different URL formats for Google spreadsheet documents?

后端 未结 3 726
小蘑菇
小蘑菇 2020-12-17 01:59

My app accesses private Google spreadsheet documents on behalf of an authorized user. It seems that Google\'s API expects developers to first request a list of all the spre

相关标签:
3条回答
  • 2020-12-17 02:20

    Old style sheets

    They work online only and limited to about 400,000 cells per spreadsheet.

    Old style URL

     https://docs.google.com/spreadsheet/ccc?key={some long key here}&usp=drive_web#gid=0
    

    New style sheets

    Released about mid Dec 2013

    Works offline and (if I remember) up to 2,000,000 cells per spreadsheet.

    https://docs.google.com/spreadsheets/d/{some long key here}/edit#gid=0
    

    Spreadsheet KEY

    I get the key using Google-apps-script, as described here: Get the spreadsheet key that is in the URL. Not ss.getId()

    0 讨论(0)
  • 2020-12-17 02:36

    Cloudward has solved this through Cloud Snippets. Here's two that may be of help, there are lots of others to explore as well.

    Publish Simple List from Google Sheet: https://snippets.cloudward.com/app_listing.espx?template_id=0d367025e8b5f402cd510905cade1d29&account_id=&cat_id=c478885bb325028151eaa9060422c67f

    Publish Google Doc by ID: https://snippets.cloudward.com/app_listing.espx?template_id=51925e7ed2166d7d83a8c32fa1ee88dd&account_id=

    Hope this helps.

    Bob

    0 讨论(0)
  • 2020-12-17 02:40

    Where are you getting the URL from? You shouldn't rely on specific URL formats, these are subject to change and not intended to be reliable. You should be able get just the id by specifying the "fields" parameter in your request. See https://developers.google.com/drive/v2/reference/files/list

    0 讨论(0)
提交回复
热议问题