Sources with the BigML Dashboard
8.7 Cloud Storages
You can create BigML Sources by downloading data from your cloud storages. Because of the popularity of cloud storages, BigML gives users the ability to configure their cloud storages on the Dashboard.
8.7.1 Configuring Cloud Storages
BigML allows you to configure the following cloud storage providers at https://bigml.com/account/cloudstorages (see Figure 8.14 ):
Google Cloud Storage
Google Drive
Dropbox
Microsoft Azure Marketplace
If you enable cloud storage providers, you will have a new menu option in the listing source view where you can use a widget to navigate through those storages and locate your source. (See Figure 8.15 .)
To use any of those cloud storage providers, you need to first grant BigML access to it or provide your credentials. You can revoke the access or disable the new menu options at any time.
8.7.2 Dropbox
Given the OAuth token for a Dropbox file, request its download as a source via the Dropbox scheme, providing the token in the query string, without host:
For instance, for the file iris.csv at the root of your Dropbox you could use:
For the same file inside a csv folder the correct URI would be:
8.7.3 Google Cloud Storage
Remote sources can use the gcs schema to specify any file stored in a Google Cloud Storage bucket. For publicly shared files, no other parameter is needed, e.g., if iris.csv is in the folder customerdata of the bigml bucket use:
If the file is protected and you have an OAuth2 access token which has not yet expired, specify it via the token query string parameter:
In addition, if you also have a refresh token, and your client identifier and application secret, they can be specified together with the token using the additional query string parameters refresh-token, client-id and app-secret, respectively, and BigML will take care of refreshing the possibly expired token as needed.
8.7.4 Google Drive
Remote sources using the gdrive protocol refer to files stored in Google Drive (GDrive). The full URI does not use a host, so it usually starts with gdrive:///, and its only path component refers to the required file’s file-id, as provided by the Google Drive service.
GDrive files are granted access via OAuth2, so you also need a client ID, app secret, a token, and refresh token to access the file. Generally, a gdrive URI looks like:
For example: