API Reference

Download a single file

Description

Returns a file with the provided ID, which points to a file meta ID.

GET /api/v1/file/{fileId}/download

🚧

Required OAuth Scopes:

No OAuth scopes are required to use this endpoint.

Parameters

ParameterInTypeRequiredDescription
fileIdpathstringtrueThe unique identifier of the file

Code Samples

curl -X GET https://h.app.wdesk.com/s/wdata/prep/api/v1/file/{fileId}/download  \ 
-H 'Accept: */*' \ 
-H 'Authorization: Bearer {access-token}'
http GET https://h.app.wdesk.com/s/wdata/prep/api/v1/file/{fileId}/download  \ 
Accept:*/* \ 
Authorization:"Bearer {access-token}"
wget --method=GET "https://h.app.wdesk.com/s/wdata/prep/api/v1/file/{fileId}/download" \
 --output-document -  \ 
 --header 'Accept: */*' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Accept': '*/*',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://h.app.wdesk.com/s/wdata/prep/api/v1/file/{fileId}/download', headers = headers)

print(r.json())

Returns

200 - OK

Returns a string of bytes that represent the requested file.

Example Responses

No example available