Back to Collection Items
#include <C_CkHttp.h>
#include <C_CkHttpResponse.h>
#include <C_CkStringBuilder.h>
#include <C_CkJsonObject.h>
void ChilkatSample(void)
{
HCkHttp http;
BOOL success;
HCkHttpResponse resp;
HCkStringBuilder sbResponseBody;
HCkJsonObject jResp;
int respStatusCode;
const char *additionalLabel;
const char *communityNickname;
const char *companyName;
const char *displayName;
const char *firstName;
BOOL isActive;
BOOL isInThisCommunity;
const char *lastName;
const char *motifColor;
const char *motifLargeIconUrl;
const char *motifMediumIconUrl;
const char *motifSmallIconUrl;
const char *motifSvgIconUrl;
const char *mySubscription;
const char *name;
const char *outOfOfficeMessage;
const char *photoFullEmailPhotoUrl;
const char *photoLargePhotoUrl;
const char *photoMediumPhotoUrl;
const char *photoPhotoVersionId;
const char *photoSmallPhotoUrl;
const char *photoStandardEmailPhotoUrl;
const char *photoUrl;
const char *reputation;
const char *title;
const char *v_type;
const char *userType;
const char *IsRichText;
const char *Text;
const char *conversationId;
const char *conversationUrl;
const char *id;
const char *AdditionalLabel;
const char *CommunityNickname;
const char *CompanyName;
const char *DisplayName;
const char *FirstName;
const char *Id;
BOOL IsActive;
BOOL IsInThisCommunity;
const char *LastName;
const char *Color;
const char *LargeIconUrl;
const char *MediumIconUrl;
const char *SmallIconUrl;
const char *SvgIconUrl;
const char *MySubscription;
const char *Name;
const char *Message;
const char *FullEmailPhotoUrl;
const char *LargePhotoUrl;
const char *MediumPhotoUrl;
const char *PhotoVersionId;
const char *SmallPhotoUrl;
const char *StandardEmailPhotoUrl;
const char *v_Url;
const char *Reputation;
const char *Title;
const char *v_Type;
const char *senderUrl;
const char *UserType;
const char *sendingCommunity;
const char *sentDate;
const char *url;
int i;
int count_i;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
http = CkHttp_Create();
// Adds the "Authorization: Bearer <access_token>" header.
CkHttp_putAuthToken(http,"<access_token>");
resp = CkHttp_QuickRequest(http,"POST","message&recipients=<USER1_ID>,<USER2_ID>");
if (CkHttp_getLastMethodSuccess(http) == FALSE) {
printf("%s\n",CkHttp_lastErrorText(http));
CkHttp_Dispose(http);
return;
}
sbResponseBody = CkStringBuilder_Create();
CkHttpResponse_GetBodySb(resp,sbResponseBody);
jResp = CkJsonObject_Create();
CkJsonObject_LoadSb(jResp,sbResponseBody);
CkJsonObject_putEmitCompact(jResp,FALSE);
printf("Response Body:\n");
printf("%s\n",CkJsonObject_emit(jResp));
respStatusCode = CkHttpResponse_getStatusCode(resp);
printf("Response Status Code = %d\n",respStatusCode);
if (respStatusCode >= 400) {
printf("Response Header:\n");
printf("%s\n",CkHttpResponse_header(resp));
printf("Failed.\n");
CkHttpResponse_Dispose(resp);
CkHttp_Dispose(http);
CkStringBuilder_Dispose(sbResponseBody);
CkJsonObject_Dispose(jResp);
return;
}
CkHttpResponse_Dispose(resp);
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "body": {
// "isRichText": null,
// "messageSegments": [
// ],
// "text": "This is a private message"
// },
// "conversationId": "03M...",
// "conversationUrl": "/services/data/v58.0/chatter/users/me/conversations/03M...",
// "id": "03J...",
// "recipients": [
// {
// "additionalLabel": null,
// "communityNickname": "automatedprocess",
// "companyName": "Salesforce",
// "displayName": "Automated Process",
// "firstName": "Automated",
// "id": "005...",
// "isActive": true,
// "isInThisCommunity": true,
// "lastName": "Process",
// "motif": {
// "color": "1B96FF",
// "largeIconUrl": "/img/icon/profile64.png",
// "mediumIconUrl": "/img/icon/profile32.png",
// "smallIconUrl": "/img/icon/profile16.png",
// "svgIconUrl": null
// },
// "mySubscription": null,
// "name": "Automated Process",
// "outOfOffice": {
// "message": ""
// },
// "photo": {
// "fullEmailPhotoUrl": "https://<my_domain>/img/userprofile/default_profile_200_v2.png?fromEmail=1",
// "largePhotoUrl": "https://<my_domain>/profilephoto/005/F",
// "mediumPhotoUrl": "https://<my_domain>/profilephoto/005/M",
// "photoVersionId": null,
// "smallPhotoUrl": "https://<my_domain>/profilephoto/005/T",
// "standardEmailPhotoUrl": "https://<my_domain>/img/userprofile/default_profile_45_v2.png?fromEmail=1",
// "url": "/services/data/v58.0/connect/user-profiles/005.../photo"
// },
// "reputation": null,
// "title": null,
// "type": "User",
// "url": "/services/data/v58.0/chatter/users/005...",
// "userType": "System"
// },
// {
// "additionalLabel": null,
// "communityNickname": "User1696423780773910041",
// "companyName": "Salesforce",
// "displayName": "Name",
// "firstName": "FirstName",
// "id": "005...",
// "isActive": true,
// "isInThisCommunity": true,
// "lastName": "Name",
// "motif": {
// "color": "1B96FF",
// "largeIconUrl": "/img/icon/profile64.png",
// "mediumIconUrl": "/img/icon/profile32.png",
// "smallIconUrl": "/img/icon/profile16.png",
// "svgIconUrl": null
// },
// "mySubscription": null,
// "name": "Name",
// "outOfOffice": {
// "message": ""
// },
// "photo": {
// "fullEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1",
// "largePhotoUrl": "https://<my_domain>/profilephoto/729.../F",
// "mediumPhotoUrl": "https://<my_domain>/profilephoto/729.../M",
// "photoVersionId": "729...",
// "smallPhotoUrl": "https://<my_domain>/profilephoto/729.../T",
// "standardEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1",
// "url": "/services/data/v58.0/connect/user-profiles/005.../photo"
// },
// "reputation": null,
// "title": null,
// "type": "User",
// "url": "/services/data/v58.0/chatter/users/005...",
// "userType": "Internal"
// }
// ],
// "sender": {
// "additionalLabel": null,
// "communityNickname": "User1696423780773910041",
// "companyName": "Salesforce",
// "displayName": "Name",
// "firstName": "Firstname",
// "id": "005...",
// "isActive": true,
// "isInThisCommunity": true,
// "lastName": "Name",
// "motif": {
// "color": "1B96FF",
// "largeIconUrl": "/img/icon/profile64.png",
// "mediumIconUrl": "/img/icon/profile32.png",
// "smallIconUrl": "/img/icon/profile16.png",
// "svgIconUrl": null
// },
// "mySubscription": null,
// "name": "Name",
// "outOfOffice": {
// "message": ""
// },
// "photo": {
// "fullEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1",
// "largePhotoUrl": "https://<my_domain>/profilephoto/729.../F",
// "mediumPhotoUrl": "https://<my_domain>/profilephoto/729.../M",
// "photoVersionId": "729...",
// "smallPhotoUrl": "https://<my_domain>/profilephoto/729.../T",
// "standardEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1",
// "url": "/services/data/v58.0/connect/user-profiles/005.../photo"
// },
// "reputation": null,
// "title": null,
// "type": "User",
// "url": "/services/data/v58.0/chatter/users/005...",
// "userType": "Internal"
// },
// "sendingCommunity": null,
// "sentDate": "<datetime>",
// "url": "/services/data/v58.0/chatter/users/me/messages/03J..."
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
// Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
IsRichText = CkJsonObject_stringOf(jResp,"body.isRichText");
Text = CkJsonObject_stringOf(jResp,"body.text");
conversationId = CkJsonObject_stringOf(jResp,"conversationId");
conversationUrl = CkJsonObject_stringOf(jResp,"conversationUrl");
id = CkJsonObject_stringOf(jResp,"id");
AdditionalLabel = CkJsonObject_stringOf(jResp,"sender.additionalLabel");
CommunityNickname = CkJsonObject_stringOf(jResp,"sender.communityNickname");
CompanyName = CkJsonObject_stringOf(jResp,"sender.companyName");
DisplayName = CkJsonObject_stringOf(jResp,"sender.displayName");
FirstName = CkJsonObject_stringOf(jResp,"sender.firstName");
Id = CkJsonObject_stringOf(jResp,"sender.id");
IsActive = CkJsonObject_BoolOf(jResp,"sender.isActive");
IsInThisCommunity = CkJsonObject_BoolOf(jResp,"sender.isInThisCommunity");
LastName = CkJsonObject_stringOf(jResp,"sender.lastName");
Color = CkJsonObject_stringOf(jResp,"sender.motif.color");
LargeIconUrl = CkJsonObject_stringOf(jResp,"sender.motif.largeIconUrl");
MediumIconUrl = CkJsonObject_stringOf(jResp,"sender.motif.mediumIconUrl");
SmallIconUrl = CkJsonObject_stringOf(jResp,"sender.motif.smallIconUrl");
SvgIconUrl = CkJsonObject_stringOf(jResp,"sender.motif.svgIconUrl");
MySubscription = CkJsonObject_stringOf(jResp,"sender.mySubscription");
Name = CkJsonObject_stringOf(jResp,"sender.name");
Message = CkJsonObject_stringOf(jResp,"sender.outOfOffice.message");
FullEmailPhotoUrl = CkJsonObject_stringOf(jResp,"sender.photo.fullEmailPhotoUrl");
LargePhotoUrl = CkJsonObject_stringOf(jResp,"sender.photo.largePhotoUrl");
MediumPhotoUrl = CkJsonObject_stringOf(jResp,"sender.photo.mediumPhotoUrl");
PhotoVersionId = CkJsonObject_stringOf(jResp,"sender.photo.photoVersionId");
SmallPhotoUrl = CkJsonObject_stringOf(jResp,"sender.photo.smallPhotoUrl");
StandardEmailPhotoUrl = CkJsonObject_stringOf(jResp,"sender.photo.standardEmailPhotoUrl");
v_Url = CkJsonObject_stringOf(jResp,"sender.photo.url");
Reputation = CkJsonObject_stringOf(jResp,"sender.reputation");
Title = CkJsonObject_stringOf(jResp,"sender.title");
v_Type = CkJsonObject_stringOf(jResp,"sender.type");
senderUrl = CkJsonObject_stringOf(jResp,"sender.url");
UserType = CkJsonObject_stringOf(jResp,"sender.userType");
sendingCommunity = CkJsonObject_stringOf(jResp,"sendingCommunity");
sentDate = CkJsonObject_stringOf(jResp,"sentDate");
url = CkJsonObject_stringOf(jResp,"url");
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"body.messageSegments");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"recipients");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
additionalLabel = CkJsonObject_stringOf(jResp,"recipients[i].additionalLabel");
communityNickname = CkJsonObject_stringOf(jResp,"recipients[i].communityNickname");
companyName = CkJsonObject_stringOf(jResp,"recipients[i].companyName");
displayName = CkJsonObject_stringOf(jResp,"recipients[i].displayName");
firstName = CkJsonObject_stringOf(jResp,"recipients[i].firstName");
id = CkJsonObject_stringOf(jResp,"recipients[i].id");
isActive = CkJsonObject_BoolOf(jResp,"recipients[i].isActive");
isInThisCommunity = CkJsonObject_BoolOf(jResp,"recipients[i].isInThisCommunity");
lastName = CkJsonObject_stringOf(jResp,"recipients[i].lastName");
motifColor = CkJsonObject_stringOf(jResp,"recipients[i].motif.color");
motifLargeIconUrl = CkJsonObject_stringOf(jResp,"recipients[i].motif.largeIconUrl");
motifMediumIconUrl = CkJsonObject_stringOf(jResp,"recipients[i].motif.mediumIconUrl");
motifSmallIconUrl = CkJsonObject_stringOf(jResp,"recipients[i].motif.smallIconUrl");
motifSvgIconUrl = CkJsonObject_stringOf(jResp,"recipients[i].motif.svgIconUrl");
mySubscription = CkJsonObject_stringOf(jResp,"recipients[i].mySubscription");
name = CkJsonObject_stringOf(jResp,"recipients[i].name");
outOfOfficeMessage = CkJsonObject_stringOf(jResp,"recipients[i].outOfOffice.message");
photoFullEmailPhotoUrl = CkJsonObject_stringOf(jResp,"recipients[i].photo.fullEmailPhotoUrl");
photoLargePhotoUrl = CkJsonObject_stringOf(jResp,"recipients[i].photo.largePhotoUrl");
photoMediumPhotoUrl = CkJsonObject_stringOf(jResp,"recipients[i].photo.mediumPhotoUrl");
photoPhotoVersionId = CkJsonObject_stringOf(jResp,"recipients[i].photo.photoVersionId");
photoSmallPhotoUrl = CkJsonObject_stringOf(jResp,"recipients[i].photo.smallPhotoUrl");
photoStandardEmailPhotoUrl = CkJsonObject_stringOf(jResp,"recipients[i].photo.standardEmailPhotoUrl");
photoUrl = CkJsonObject_stringOf(jResp,"recipients[i].photo.url");
reputation = CkJsonObject_stringOf(jResp,"recipients[i].reputation");
title = CkJsonObject_stringOf(jResp,"recipients[i].title");
v_type = CkJsonObject_stringOf(jResp,"recipients[i].type");
url = CkJsonObject_stringOf(jResp,"recipients[i].url");
userType = CkJsonObject_stringOf(jResp,"recipients[i].userType");
i = i + 1;
}
CkHttp_Dispose(http);
CkStringBuilder_Dispose(sbResponseBody);
CkJsonObject_Dispose(jResp);
}
Curl Command
curl -X POST
-H "Authorization: Bearer <access_token>"
https://domain.com/services/data/v{{version}}/chatter/users/me/messages?text=This is a private message&recipients=<USER1_ID>,<USER2_ID>
Postman Collection Item JSON
{
"name": "User Messages, General",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
],
"url": {
"raw": "{{_endpoint}}/services/data/v{{version}}/chatter/users/me/messages?text=This is a private message&recipients=<USER1_ID>,<USER2_ID>",
"host": [
"{{_endpoint}}"
],
"path": [
"services",
"data",
"v{{version}}",
"chatter",
"users",
"me",
"messages"
],
"query": [
{
"key": "text",
"value": "This is a private message"
},
{
"key": "inReplyTo",
"value": "<MESSAGE_ID>",
"description": "ID of an existing message that identifies which conversation this message is part of. Specify either recipients or inReplyTo. Specify one or the other, not both.",
"disabled": true
},
{
"key": "recipients",
"value": "<USER1_ID>,<USER2_ID>",
"description": "Comma-separated list of User IDs"
}
]
},
"description": "Returns all the messages for all the private conversations for the context user. Also used to search across all messages and post a message.\nTo return all private conversations for the context user, see User Conversations, General.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_users_messages_general.htm"
},
"response": [
{
"name": "Successful User Messages, General",
"originalRequest": {
"method": "POST",
"header": [
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{_endpoint}}/services/data/v{{version}}/chatter/users/me/messages?text=This is a private message&recipients=0052o00000DKQasAAH",
"host": [
"{{_endpoint}}"
],
"path": [
"services",
"data",
"v{{version}}",
"chatter",
"users",
"me",
"messages"
],
"query": [
{
"key": "text",
"value": "This is a private message"
},
{
"key": "inReplyTo",
"value": "<MESSAGE_ID>",
"description": "ID of an existing message that identifies which conversation this message is part of. Specify either recipients or inReplyTo. Specify one or the other, not both.",
"disabled": true
},
{
"key": "recipients",
"value": "0052o00000DKQasAAH",
"description": "Comma-separated list of User IDs"
}
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Mon, 20 Nov 2023 16:22:22 GMT"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=63072000; includeSubDomains"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "X-Robots-Tag",
"value": "none"
},
{
"key": "Cache-Control",
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
},
{
"key": "Content-Type",
"value": "application/json;charset=UTF-8"
},
{
"key": "Vary",
"value": "Accept-Encoding"
},
{
"key": "Content-Encoding",
"value": "gzip"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
}
],
"cookie": [
],
"body": "{\n \"body\": {\n \"isRichText\": null,\n \"messageSegments\": [],\n \"text\": \"This is a private message\"\n },\n \"conversationId\": \"03M...\",\n \"conversationUrl\": \"/services/data/v58.0/chatter/users/me/conversations/03M...\",\n \"id\": \"03J...\",\n \"recipients\": [\n {\n \"additionalLabel\": null,\n \"communityNickname\": \"automatedprocess\",\n \"companyName\": \"Salesforce\",\n \"displayName\": \"Automated Process\",\n \"firstName\": \"Automated\",\n \"id\": \"005...\",\n \"isActive\": true,\n \"isInThisCommunity\": true,\n \"lastName\": \"Process\",\n \"motif\": {\n \"color\": \"1B96FF\",\n \"largeIconUrl\": \"/img/icon/profile64.png\",\n \"mediumIconUrl\": \"/img/icon/profile32.png\",\n \"smallIconUrl\": \"/img/icon/profile16.png\",\n \"svgIconUrl\": null\n },\n \"mySubscription\": null,\n \"name\": \"Automated Process\",\n \"outOfOffice\": {\n \"message\": \"\"\n },\n \"photo\": {\n \"fullEmailPhotoUrl\": \"https://<my_domain>/img/userprofile/default_profile_200_v2.png?fromEmail=1\",\n \"largePhotoUrl\": \"https://<my_domain>/profilephoto/005/F\",\n \"mediumPhotoUrl\": \"https://<my_domain>/profilephoto/005/M\",\n \"photoVersionId\": null,\n \"smallPhotoUrl\": \"https://<my_domain>/profilephoto/005/T\",\n \"standardEmailPhotoUrl\": \"https://<my_domain>/img/userprofile/default_profile_45_v2.png?fromEmail=1\",\n \"url\": \"/services/data/v58.0/connect/user-profiles/005.../photo\"\n },\n \"reputation\": null,\n \"title\": null,\n \"type\": \"User\",\n \"url\": \"/services/data/v58.0/chatter/users/005...\",\n \"userType\": \"System\"\n },\n {\n \"additionalLabel\": null,\n \"communityNickname\": \"User1696423780773910041\",\n \"companyName\": \"Salesforce\",\n \"displayName\": \"Name\",\n \"firstName\": \"FirstName\",\n \"id\": \"005...\",\n \"isActive\": true,\n \"isInThisCommunity\": true,\n \"lastName\": \"Name\",\n \"motif\": {\n \"color\": \"1B96FF\",\n \"largeIconUrl\": \"/img/icon/profile64.png\",\n \"mediumIconUrl\": \"/img/icon/profile32.png\",\n \"smallIconUrl\": \"/img/icon/profile16.png\",\n \"svgIconUrl\": null\n },\n \"mySubscription\": null,\n \"name\": \"Name\",\n \"outOfOffice\": {\n \"message\": \"\"\n },\n \"photo\": {\n \"fullEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1\",\n \"largePhotoUrl\": \"https://<my_domain>/profilephoto/729.../F\",\n \"mediumPhotoUrl\": \"https://<my_domain>/profilephoto/729.../M\",\n \"photoVersionId\": \"729...\",\n \"smallPhotoUrl\": \"https://<my_domain>/profilephoto/729.../T\",\n \"standardEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1\",\n \"url\": \"/services/data/v58.0/connect/user-profiles/005.../photo\"\n },\n \"reputation\": null,\n \"title\": null,\n \"type\": \"User\",\n \"url\": \"/services/data/v58.0/chatter/users/005...\",\n \"userType\": \"Internal\"\n }\n ],\n \"sender\": {\n \"additionalLabel\": null,\n \"communityNickname\": \"User1696423780773910041\",\n \"companyName\": \"Salesforce\",\n \"displayName\": \"Name\",\n \"firstName\": \"Firstname\",\n \"id\": \"005...\",\n \"isActive\": true,\n \"isInThisCommunity\": true,\n \"lastName\": \"Name\",\n \"motif\": {\n \"color\": \"1B96FF\",\n \"largeIconUrl\": \"/img/icon/profile64.png\",\n \"mediumIconUrl\": \"/img/icon/profile32.png\",\n \"smallIconUrl\": \"/img/icon/profile16.png\",\n \"svgIconUrl\": null\n },\n \"mySubscription\": null,\n \"name\": \"Name\",\n \"outOfOffice\": {\n \"message\": \"\"\n },\n \"photo\": {\n \"fullEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1\",\n \"largePhotoUrl\": \"https://<my_domain>/profilephoto/729.../F\",\n \"mediumPhotoUrl\": \"https://<my_domain>/profilephoto/729.../M\",\n \"photoVersionId\": \"729...\",\n \"smallPhotoUrl\": \"https://<my_domain>/profilephoto/729.../T\",\n \"standardEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1\",\n \"url\": \"/services/data/v58.0/connect/user-profiles/005.../photo\"\n },\n \"reputation\": null,\n \"title\": null,\n \"type\": \"User\",\n \"url\": \"/services/data/v58.0/chatter/users/005...\",\n \"userType\": \"Internal\"\n },\n \"sendingCommunity\": null,\n \"sentDate\": \"<datetime>\",\n \"url\": \"/services/data/v58.0/chatter/users/me/messages/03J...\"\n}"
}
]
}