Skip to content

DipeshTest/gdrivedelete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

title weight
Delete GDrive File
1

Delete GDrive File

This activity allows you to delete a file from Gdrive account. This activity is built by Team AllStars

Installation

Flogo CLI

flogo install github.com/DipeshTest/gdrivedelete

Third-party libraries used

  • package drive - "google.golang.org/api/drive/v3":

    Package drive provides access to the Drive API. For more details, check https://developers.google.com/drive/
  • package googleapi - "google.golang.org/api/googleapi":

    Package googleapi contains the common code shared by all Google API libraries.

Schema

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"
  }
]
}

Settings

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

Examples

Please refer activity_test.go

Response Codes

Google Drive Delete

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages