You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-27 22:18:36 +02:00
79 lines
2.4 KiB
Plaintext
Vendored
79 lines
2.4 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 6
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get upload status by URL
|
|
Gets the upload status of the file by URL
|
|
|
|
|
|
|
|
`Function GetUploadStatusByURL(Val Token, Val JobID) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| JobID | --job | String | ✔ | ID of async jsob from UploadFileByURL response |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "sl.u.AFl4exnJTfu3ktlAB5SL9c6m8KfDrkILdZu1-5pPnA-_58JlWcvj507ryybadExtpMlE1MsEb1PApmydF-aSTQ6CkBMGtumKCpUlIP9a0uJkHkIkaFyZKqeVj1SCGwJdpyihz_DqlOHPP_qpFaOj52r4RJeMVmESiHRLyG0lv1J_a4gk0hqu0ykbRDMYh1F9iOg7QzbHFlrj8b5HS5RJDMxAHSuuyNPBiR3Vnvd-MHtyHWTZs9k3krDn1Ytw6kMCMbnjEA2S4L0er3sryTh530nzCsFq4Z6IEObBeT1jIV6yoY9gdDM3WZkfbbVe2l0KUJ8xoS0v1Gv0_QU75Oa9bwQiGf2tnyzo6kGMO5r-x4nzHUEf0POg0s_715VXHU22mZNeNqbKJd6S5tcFxvv7SjNgqsuwXG7Lk7g0p25gecCJ_Epi34ZjaMVvTrR9WKSvNvZ8rtKyGpBXZrg3CLLdMsSjMUWxiW36RAFCBNBJRw73EnQ5BhzwhdeqUu3BF11KCawloX3I8nWOQm2c5f1OKgSAw0ZAPaHGySULVTf1NUe-z2c1Fq-ws_RedL0hnqbWV0v_VH07P3ioVrOOuAmt7QHHlS1h6HLWB1wmsw6IkJUWeCkWtNHgCKVzGNn-2JcnLrPOHhzWLeNi7oYWfzFQ-fyT3JMhEI8Ojjc3MiyGzvrkOFRkUy_0HPy30_MlnPhaPdnqlDuYH9agx8q2cdVuF4iA6pGYiGO...";
|
|
WorkID = "r06zMnMQiwgAAAAAAAAAAQ";
|
|
Status = "in_progress";
|
|
|
|
While Status = "in_progress" Do
|
|
|
|
Result = OPI_Dropbox.GetUploadStatusByURL(Token, WorkID);
|
|
Status = Result[".tag"];
|
|
|
|
OPI_Tools.Pause(5);
|
|
|
|
EndDo;
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint dropbox GetUploadStatusByURL \
|
|
--token "***" \
|
|
--job "zCPnM1CuJyMAAAAAAAAAAQ"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint dropbox GetUploadStatusByURL ^
|
|
--token "***" ^
|
|
--job "zCPnM1CuJyMAAAAAAAAAAQ"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
".tag": "complete",
|
|
"name": "url_doc.docx",
|
|
"path_lower": "/new/url_doc.docx",
|
|
"path_display": "/New/url_doc.docx",
|
|
"id": "id:kJU6-a-pT48AAAAAAAAclg",
|
|
"client_modified": "2024-10-09T06:17:00Z",
|
|
"server_modified": "2024-10-09T06:17:01Z",
|
|
"rev": "6240533b3289cbd841553",
|
|
"size": 24069,
|
|
"is_downloadable": true,
|
|
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
|
|
}
|
|
```
|