You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
1.4 KiB
1.4 KiB
sidebar_position
| sidebar_position |
|---|
| 2 |
Get comment
Gets comment by ID
Function GetComment(Val Token, Val ObjectID, Val CommentID) Export
| Parameter | CLI option | Type | Description |
|---|---|---|---|
| Token | --token | String | Token |
| ObjectID | --object | String | Identifier of the file or directory where the comment is located |
| CommentID | --comment | String | Comment identifier |
Returns: Map Of KeyAndValue - serialized JSON response from Google
Token = "ya29.a0AcM612yqBU-Js-ZwvMX9kOgTqr1bzVlotSXxpjuDiy-VQFNrbVcJqWC-p_l2W_Ng_se_7j6PbCOWHu1waCLQEAilKYg3xb2Q18DG_cMfA...";
Identifier = "1U8hhtaSXcxZuojGLumLYODMBspUV501s";
CommentID = "AAABRXT3-W4";
Result = OPI_GoogleDrive.GetComment(Token, Identifier, CommentID);
oint gdrive GetComment --token %token% --object %object% --comment "AAABI3NNNAY"
{
"id": "AAABW5rdEaE",
"kind": "drive#comment",
"createdTime": "2024-10-09T06:13:52.313Z",
"modifiedTime": "2024-10-09T06:13:52.313Z",
"replies": [],
"author": {
"displayName": "Антон Титовец",
"kind": "drive#user",
"me": true,
"photoLink": "//lh3.googleusercontent.com/a/ACg8ocKYttNv2CZ-cTTuE90Zmht_PwnGc0YnjM1IUllXsTVORfZFVPU=s50-c-k-no"
},
"deleted": false,
"htmlContent": "Comment text",
"content": "Comment text"
}