Queue Google Drive

POST {{api_base}}/{{api_version}}/api/integration/googledrive

Overview

Queues a job to upload the specified file or zip to the Google Drive account sent with the google_token key. To get this key, either get an OAuth2 token using /oauth/google or your own solution. Make sure when creating the OAuth link, you add the scope https://www.googleapis.com/auth/drive.file so TorBox has access to the user's Drive.

Authorization

Requires an API key using the Authorization Bearer Header.

Request Body

{"id"=>0, "file_id"=>0, "zip"=>false, "type"=>"torrent", "google_token"=>"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}

HEADERS

| Key | Datatype | Required | Description |

RESPONSES

status: ``