Description
Retrieves a sheet given its ID.
GET
/spreadsheets/{spreadsheetId}/sheets/{sheetId}
Required OAuth Scopes:
file:read
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
spreadsheetId | path | string | true | The unique identifier of the spreadsheet |
sheetId | path | string | true | The unique identifier of the sheet |
Code Samples
curl -X GET https://api.app.wdesk.com/platform/v1/spreadsheets/{spreadsheetId}/sheets/{sheetId} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
http GET https://api.app.wdesk.com/platform/v1/spreadsheets/{spreadsheetId}/sheets/{sheetId} \
Accept:application/json \
Authorization:"Bearer {access-token}"
wget --method=GET "https://api.app.wdesk.com/platform/v1/spreadsheets/{spreadsheetId}/sheets/{sheetId}" \
--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/platform/v1/spreadsheets/{spreadsheetId}/sheets/{sheetId}', headers = headers)
print(r.json())
Returns
200 - OK
Returns a Sheet
object containing details about the requested Sheet
.
Example Responses
{
"name": "Q1",
"id": "242a56d3cc0742c8abad0820bd318b23",
"modified": {
"dateTime": "2020-03-21T15:03:27Z"
},
"parent": null,
"index": 0,
"children": [],
"dataset": null
}