1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-23 02:06:12 +02:00
OpenIntegrations/docs/en/md/Dropbox/File-and-directory-management/Upload-file-by-url.md
2024-08-09 17:15:52 +03:00

1.1 KiB

sidebar_position
5

Upload file by URL

Uploads a file to the cloud drive by fetching it from the specified URL

Function UploadFileByURL(Val Token, Val FileURL, Val Path) Export

Parameter CLI option Type Destination
Token --token String Token
FileURL --url String URL source of the file
Path --path String Save path on Dropbox

Returns: Map Of KeyAndValue - serialized JSON response from Dropbox


 Path = "/New/url_doc.docx";
 Token = "sl.B6AQWp9MlZlz4iaf41whVKxX9-MXeCiQhPRe4YIRxFmZ3zHsdjmOAatzgaWVhqmlIOvDD6WIUQ...";
 URL = "https://openintegrations.dev/test_data/document.docx";
 
 Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
 
 oint dropbox UploadFileByURL --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --url %url% --path %path%

{
 ".tag": "async_job_id",
 "async_job_id": "41d0vPCn2mYAAAAAAAAAAQ"
}