title | weight |
---|---|
Delete GDrive File |
1 |
This activity allows you to delete a file from Gdrive account. This activity is built by Team AllStars
flogo install github.com/DipeshTest/gdrivedelete
- Package drive provides access to the Drive API. For more details, check https://developers.google.com/drive/
- Package googleapi contains the common code shared by all Google API libraries.
Inputs and Outputs:
"inputs":[
{
"name": "accessToken",
"type": "string",
"required": true
},
{
"name": "fileId",
"type": "string",
"required": true
},{
"name": "timeout",
"type": "string",
"value":"120"
} ],
"outputs": [
{
"name": "statusCode",
"type": "string"
},
{
"name": "message",
"type": "any"
}
]
}
Setting | Required | Description |
---|---|---|
accessToken | True | The access token for your account |
fileId | True | File Id of the file to delete |
timeout | False | Timeout value for the delete call, default value is 120 seconds |
Please refer activity_test.go
ResponseCode | Type | Description |
---|---|---|
200 | OK | The request was successful. |
105 | INVALID INPUT | Access token is not specified. |
106 | INVALID INPUT | File ID is not specified. |
401 | AUTHENTICATION ERROR | Invalid Access Token. |
404 | SERVER ERROR | File Not Found. |
Note - Please refer link - https://developers.google.com/doubleclick-search/v2/standard-error-responses for other standard error responses from Google