1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-27 12:32:33 +02:00

58 lines
1.3 KiB
Markdown
Raw Normal View History

---
sidebar_position: 6
---
# Get upload status by URL
Gets the upload status of the file by URL
2024-07-10 13:58:29 +03:00
`Function GetUploadStatusByURL(Val Token, Val JobID) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| JobID | --job | String | ID of async jsob from UploadFileByURL response |
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-10-15 10:07:27 +03:00
Token = "sl.B-uquz3utwEHepKzyqLBfnFvmY1EWTYDus5LDjT5ux5srp9PJRtr7CvMv20nVl2rRGC3K4J_X5...";
WorkID = "4SQ3zikww9gAAAAAAAAAAQ";
2024-08-13 16:47:32 +03:00
Status = "in_progress";
WHile Status = "in_progress" Do
Result = OPI_Dropbox.GetUploadStatusByURL(Token, WorkID);
Status = Result[".tag"];
OPI_Tools.Pause(5);
EndDo;
```
2024-10-15 09:53:37 +03:00
```json title="Result"
2024-08-14 09:06:31 +03:00
{
2024-10-06 16:55:08 +03:00
".tag": "complete",
"name": "url_doc.docx",
"path_lower": "/new/url_doc.docx",
"path_display": "/New/url_doc.docx",
2024-10-09 09:42:00 +03:00
"id": "id:kJU6-a-pT48AAAAAAAAclg",
"client_modified": "2024-10-09T06:17:00Z",
"server_modified": "2024-10-09T06:17:01Z",
"rev": "6240533b3289cbd841553",
2024-10-06 16:55:08 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
}
```