API Reference

Description

GET /spreadsheets/{SpreadsheetId}

🚧

Required OAuth Scopes:

data_tables|r

Parameters

ParameterInTypeRequiredDescription
SpreadsheetIdpathstringtrueA unique identifier for a spreadsheet
revisionqueryinteger(int32)falseThe spreadsheet revision from which to select data. If no revision is provided, the latest revision will be selected.

Code Samples

curl -X GET https://api.app.wdesk.com/spreadsheets/v1/spreadsheets/{SpreadsheetId}  \ 
-H 'Accept: application/json' \ 
-H 'Authorization: Bearer {access-token}'
http GET https://api.app.wdesk.com/spreadsheets/v1/spreadsheets/{SpreadsheetId}  \ 
Accept:application/json \ 
Authorization:"Bearer {access-token}"
wget --method=GET "https://api.app.wdesk.com/spreadsheets/v1/spreadsheets/{SpreadsheetId}" \
 --output-document -  \ 
 --header 'Accept: application/json' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Accept': 'application/json',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://api.app.wdesk.com/spreadsheets/v1/spreadsheets/{SpreadsheetId}', headers = headers)

print(r.json())

Returns

200 - OK

Returns a JSON object with data and revision properties. data contains a Spreadsheet object holding details about the new Spreadsheet.

Example Responses


{
  "data": {
    "created": "2020-04-30T13:59:49.294Z",
    "id": "567nd179ed984eb5a52aaaba5f83a230",
    "last_modified": "2020-04-30T13:59:52.003Z",
    "name": "Test Spreadsheet"
  },
  "message": "Operation successful",
  "request_id": "d6a6ce3f-f120-4104-9587-a5a2dc45626c",
  "revision": "integer"
}