Download a file of Google Drive.
1 google.drive.get
Passed an id, the file of Google Drive is downloaded.
<google.drive.get
credentials-json='credentials-json'
credentials-path='credentials-path'
file-id='file-id'
file-path='file-path'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acredentials-json | string | String of the JSON of the credentials provided by Google Drive. It is not required if the attribute credentials-path exists. | |||
Acredentials-path | string | Directory of the JSON file of the credentials provided by Google Drive. It is not required if the attribute credentials-json exists. | |||
Afile-id | string | String of the file ID which you want to download. | |||
Afile-path | string | Directory where you want to download the file. |
Obtener credenciales
To obtain the credentials, go to the section google.drive.list
Example
Download the desired file of Google Drive.
Copy
<xsql-script name=''> <body> <google.drive.get credentials-path="/Users/afp/Desktop/clientsecret.json" file-id="0B_kCxfwKVMTLUkJiVkJzR1VNMnc" file-path="/Users/afp/Desktop" /> </body> </xsql-script>