Learn R Programming

sbgr (version 1.0.0)

file_download_url: Returns a direct download URL for a project's file

Description

Returns a direct download URL for a project's file.

Usage

file_download_url(auth_token = NULL, project_id = NULL, file_id = NULL, ...)

Arguments

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

Value

parsed list of the returned json

Details

You can use any HTTP client, or library to access or download the content once you get the URL.

Examples

Run this code
token = '420b4672ebfc43bab48dc0d18a32fb6f'
req = file_download_url(token,
            project_id = '1c1d06d2-5862-48f6-b595-e0099b20937e',
            file_id = '530854e2e4b036506b803c7e')

Run the code above in your browser using DataLab