1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-29 21:57:16 +02:00
Vitaly the Alpaca (bot) dd996a47a5 Main build (Jenkins)
2024-10-03 09:45:14 +03:00

1.5 KiB

sidebar_position
1

Get comments

Gets the list of comments for a record in the table

Function GetComments(Val Token, Val Base, Val Table, Val Record, Val Indent = "") Export

Parameter CLI option Type Description
Token --token String Token
Base --base String Database identifier
Table --table String Table identifier
Record --record String Record identifier in the table
Indent --offset String Next page identifier of data from the previous request

Returns: Map Of KeyAndValue - serialized JSON response from Airtable


    Token  = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
    Base   = "app9bSgL4YtTVGTlE";
    Table  = "tblDUGAZFZaeOwE6x";
    Record = "recydoiybO8id17n5";

    Result = OPI_Airtable.GetComments(Token, Base, Table, Record);
    
  oint airtable GetComments --token %token% --base "apptm8Xqo7TwMaipQ" --table "tbl9G4jVoTJpxYwSY" --record "recV6DxeLQMBNJrUk" --offset %offset%

{
 "comments": [
  {
   "id": "compy8BPTJpSm9smO",
   "author": {
    "id": "usrFlaAHlTfYWAbVW",
    "email": "bayselonarrend@gmail.com",
    "name": "Антон Титовец"
   },
   "text": "Test comment (change.)",
   "createdTime": "2024-10-03T06:12:46Z",
   "lastUpdatedTime": "2024-10-03T06:12:46Z"
  }
 ],
 "offset": null
}