1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-31 23:20:02 +02:00

43 lines
939 B
Markdown
Raw Normal View History

---
sidebar_position: 1
---
# Get object information
Gets information about a folder or file by ID
2024-07-10 13:58:29 +03:00
`Function GetObjectInformation(Val Token, Val Identifier) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| Identifier | --object | String | Identifier of the file or folder |
Returns: Map Of KeyAndValue - serialized JSON response from Google
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-09-29 19:41:20 +03:00
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
2024-09-29 17:35:23 +03:00
Identifier = "191iyaa6-2BCNRPOF0F8mQ0TuNWPNesdM";
2024-09-28 19:38:00 +03:00
Result = OPI_GoogleDrive.GetObjectInformation(Token, Identifier);
```
```sh title="CLI command example"
oint gdrive GetObjectInformation --token %token% --object "1dg_MwwwPSPYT0p3y-8dvGWoapbwaaaaa"
```
```json title="Result"
2024-09-29 17:27:25 +03:00
```