Returns the link to download the file of Google Drive.
1 google.drive.file.link
Returns the url of the wished file to be able to download it.
<google.drive.file.link
credentials-json='credentials-json'
credentials-path='credentials-path'
file-id='file-id'
/>
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 obtain to download. |
Obtener credenciales
To obtain credentials, go to the section google.drive.list
Example
Download the desired file Google Drive.
Copy
<xsql-script name=''> <body> <google.drive.file.link credentials-path="/Users/afp/Desktop/clientsecret.json" file-id="0B_kCxfwKVMTLYjJ5Mm5CbmthaWc"/> </body> </xsql-script>