Using Curl, one can exercise all built-in class APIs via the command-line. Here are couple of sample Curl commands.
Notice that it is required to mention the HTTP header for the application and workspace (org) names.
The key names used in the following examples are described below.
Names | Description |
---|---|
sawalio | workspace (org) name |
sawal | application name |
sawaldb | data source name |
Conversation | class name |
curl -X GET \
'https://www.trillo.io/ds/object/sawal/sawaldb/Conversation?id=1' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Cookie: ***cookies****' \
-H 'x-app-name: sawal' \
-H 'x-org-name: sawalio'
curl -X POST \
'https://www.trillo.io/ds/saveAll/sawal/sawaldb/Conversation' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Cookie: ***cookies****' \
-H 'x-app-name: sawal' \
-H 'x-org-name: sawalio' \
-d '[\n {\n "origConverseId": 0,\n "senderFirstName": "",\n "senderLastName": "",\n "isAnonymous": false,\n "receiverIds": 0,\n "senderId": 0,\n "subject": 0,\n "senderPictureUrl": 0,\n "senderUserId": "",\n "userInfoId": 0\n },\n {\n "origConverseId": 0,\n "senderFirstName": "",\n "senderLastName": "",\n "isAnonymous": false,\n "receiverIds": 0,\n "senderId": 0,\n "subject": 0,\n "senderPictureUrl": 0,\n "senderUserId": "",\n "userInfoId": 0\n }\n]'