1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-23 21:29:38 +02:00
2024-08-18 17:47:59 +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 Description
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.B4gp-iE6U2BXAeEhqhHwN00_GAOFjvVi4j_C9r2yZ5sjIUcTga38IbFN49TKhxrmzyrNjttkXA...";
    URL   = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";

    Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
    
  oint dropbox UploadFileByURL --token "sl.B6AQWp9MlZlz4iaf41whVKxX9-MXeCiQhPRe4YIRxFmZ3zHsdjmOAatzgaWVhqmlIOvDD6WIUQ..." --url %url% --path %path%

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