You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
189 lines
5.3 KiB
Plaintext
Vendored
189 lines
5.3 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 1
|
|
description: Get object information and other functions to work with Google Drive in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Google Drive]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get object information
|
|
Gets information about a folder or file by ID
|
|
|
|
|
|
|
|
`Function GetObjectInformation(Val Token, Val Identifier) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| Identifier | --object | String | ✔ | Identifier of the file or folder |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "ya29.a0AQQ_BDQ_0g6De1s1jLOYbrGQ43QDri_VRPre92E-_aUXJNk52_zY1j3A74665Q7FVMzsgnjqjKN14ljBwB0PlswTyjZlgxcBIDMnuqIbFLhH8Hcxc5NfKIOpS...";
|
|
Identifier = "11Mo30odYPEtBBU_0OndFx5dz1kP7tu-Y";
|
|
|
|
Result = OPI_GoogleDrive.GetObjectInformation(Token, Identifier);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gdrive GetObjectInformation \
|
|
--token "***" \
|
|
--object "11Mo30odYPEtBBU_0OndFx5dz1kP7tu-Y"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gdrive GetObjectInformation ^
|
|
--token "***" ^
|
|
--object "11Mo30odYPEtBBU_0OndFx5dz1kP7tu-Y"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"kind": "drive#file",
|
|
"id": "11Mo30odYPEtBBU_0OndFx5dz1kP7tu-Y",
|
|
"name": "Test folder",
|
|
"mimeType": "application/vnd.google-apps.folder",
|
|
"starred": false,
|
|
"trashed": false,
|
|
"explicitlyTrashed": false,
|
|
"parents": [
|
|
"0AN2vrbrhqfJrUk9PVA"
|
|
],
|
|
"spaces": [
|
|
"drive"
|
|
],
|
|
"version": "1",
|
|
"webViewLink": "https://drive.google.com/drive/folders/11Mo30odYPEtBBU_0OndFx5dz1kP7tu-Y",
|
|
"iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.folder",
|
|
"hasThumbnail": false,
|
|
"thumbnailVersion": "0",
|
|
"viewedByMe": true,
|
|
"viewedByMeTime": "2025-01-09T19:05:16.432Z",
|
|
"createdTime": "2025-01-09T19:05:16.432Z",
|
|
"modifiedTime": "2025-01-09T19:05:20.704Z",
|
|
"modifiedByMeTime": "2025-01-09T19:05:20.704Z",
|
|
"modifiedByMe": true,
|
|
"owners": [
|
|
{
|
|
"kind": "drive#user",
|
|
"displayName": "Антон Титовец",
|
|
"photoLink": "https://lh3.googleusercontent.com/a/ACg8ocKYttNv2CZ-cTTuE90Zmht_PwnGc0YnjM1IUllXsTVORfZFVPU=s64",
|
|
"me": true,
|
|
"permissionId": "07468399490707249352",
|
|
"emailAddress": "bayselonarrend@gmail.com"
|
|
}
|
|
],
|
|
"lastModifyingUser": {
|
|
"kind": "drive#user",
|
|
"displayName": "Антон Титовец",
|
|
"photoLink": "https://lh3.googleusercontent.com/a/ACg8ocKYttNv2CZ-cTTuE90Zmht_PwnGc0YnjM1IUllXsTVORfZFVPU=s64",
|
|
"me": true,
|
|
"permissionId": "07468399490707249352",
|
|
"emailAddress": "bayselonarrend@gmail.com"
|
|
},
|
|
"shared": false,
|
|
"ownedByMe": true,
|
|
"downloadRestrictions": {
|
|
"itemDownloadRestriction": {
|
|
"restrictedForReaders": false,
|
|
"restrictedForWriters": false
|
|
},
|
|
"effectiveDownloadRestrictionWithContext": {
|
|
"restrictedForReaders": false,
|
|
"restrictedForWriters": false
|
|
}
|
|
},
|
|
"capabilities": {
|
|
"canAcceptOwnership": false,
|
|
"canAddChildren": true,
|
|
"canAddMyDriveParent": false,
|
|
"canChangeCopyRequiresWriterPermission": false,
|
|
"canChangeItemDownloadRestriction": false,
|
|
"canChangeSecurityUpdateEnabled": false,
|
|
"canChangeViewersCanCopyContent": false,
|
|
"canComment": true,
|
|
"canCopy": false,
|
|
"canDelete": true,
|
|
"canDisableInheritedPermissions": true,
|
|
"canDownload": true,
|
|
"canEdit": true,
|
|
"canEnableInheritedPermissions": true,
|
|
"canListChildren": true,
|
|
"canModifyContent": true,
|
|
"canModifyContentRestriction": false,
|
|
"canModifyEditorContentRestriction": false,
|
|
"canModifyOwnerContentRestriction": false,
|
|
"canModifyLabels": false,
|
|
"canMoveChildrenWithinDrive": true,
|
|
"canMoveItemIntoTeamDrive": true,
|
|
"canMoveItemOutOfDrive": true,
|
|
"canMoveItemWithinDrive": true,
|
|
"canReadLabels": false,
|
|
"canReadRevisions": false,
|
|
"canRemoveChildren": true,
|
|
"canRemoveContentRestriction": false,
|
|
"canRemoveMyDriveParent": true,
|
|
"canRename": true,
|
|
"canShare": true,
|
|
"canTrash": true,
|
|
"canUntrash": true
|
|
},
|
|
"viewersCanCopyContent": true,
|
|
"copyRequiresWriterPermission": false,
|
|
"writersCanShare": true,
|
|
"permissions": [
|
|
{
|
|
"kind": "drive#permission",
|
|
"id": "07468399490707249352",
|
|
"type": "user",
|
|
"emailAddress": "bayselonarrend@gmail.com",
|
|
"role": "owner",
|
|
"displayName": "Антон Титовец",
|
|
"photoLink": "https://lh3.googleusercontent.com/a/ACg8ocKYttNv2CZ-cTTuE90Zmht_PwnGc0YnjM1IUllXsTVORfZFVPU=s64",
|
|
"permissionDetails": [
|
|
{
|
|
"permissionType": "file",
|
|
"role": "owner",
|
|
"inherited": false
|
|
},
|
|
{
|
|
"permissionType": "file",
|
|
"role": "writer",
|
|
"inherited": true
|
|
}
|
|
],
|
|
"deleted": false,
|
|
"pendingOwner": false
|
|
}
|
|
],
|
|
"permissionIds": [
|
|
"07468399490707249352"
|
|
],
|
|
"folderColorRgb": "#8f8f8f",
|
|
"quotaBytesUsed": "0",
|
|
"isAppAuthorized": false,
|
|
"linkShareMetadata": {
|
|
"securityUpdateEligible": false,
|
|
"securityUpdateEnabled": true
|
|
},
|
|
"inheritedPermissionsDisabled": false
|
|
}
|
|
```
|