Create a new directory in Google Drive.
1 google.drive.new.folder
Create a new folder with the indicated name.
<google.drive.new.folder
credentials-json='credentials-json'
credentials-path='credentials-path'
folder-name='folder-name'
folder-id='folder-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 file JSON of the credentials provided by Google Drive. It is not required if the attribute credentials-json exists. | |||
Afolder-name | string | Name of the folrder which you will create. | |||
Afolder-id | string | String of the directory ID where you want to create a new folder. If yo do not enter anything, the folder will be created in the root directory. |
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.new.folder credentials-path="/Users/afp/Desktop/clientsecret.json" folder-name="Example" folder-id="0B_kCxfwKVMTLYjJ5Mm5CbmthaWc" /> </body> </xsql-script>