Returns a direct download URL for a project's file.
file_download_url(auth_token = NULL, project_id = NULL, file_id = NULL, ...)
auth_token | auth token |
---|---|
project_id | ID of a project you want to access. |
file_id | ID of a file you want to access. |
... | parameters passed to sbgapi function |
parsed list of the returned json
You can use any HTTP client, or library to access or download the content once you get the URL.
token = '420b4672ebfc43bab48dc0d18a32fb6f' req = file_download_url(token, project_id = '1c1d06d2-5862-48f6-b595-e0099b20937e', file_id = '530854e2e4b036506b803c7e')#> Error: HTTP Status 404: /1.1/project/1c1d06d2-5862-48f6-b595-e0099b20937e/file/530854e2e4b036506b803c7e/download not found