Chilkat Online Tools

unicodeC / Salesforce Platform APIs / User Messages, General

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkHttpResponseW.h>
#include <C_CkStringBuilderW.h>
#include <C_CkJsonObjectW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkHttpResponseW resp;
    HCkStringBuilderW sbResponseBody;
    HCkJsonObjectW jResp;
    int respStatusCode;
    const wchar_t *additionalLabel;
    const wchar_t *communityNickname;
    const wchar_t *companyName;
    const wchar_t *displayName;
    const wchar_t *firstName;
    BOOL isActive;
    BOOL isInThisCommunity;
    const wchar_t *lastName;
    const wchar_t *motifColor;
    const wchar_t *motifLargeIconUrl;
    const wchar_t *motifMediumIconUrl;
    const wchar_t *motifSmallIconUrl;
    const wchar_t *motifSvgIconUrl;
    const wchar_t *mySubscription;
    const wchar_t *name;
    const wchar_t *outOfOfficeMessage;
    const wchar_t *photoFullEmailPhotoUrl;
    const wchar_t *photoLargePhotoUrl;
    const wchar_t *photoMediumPhotoUrl;
    const wchar_t *photoPhotoVersionId;
    const wchar_t *photoSmallPhotoUrl;
    const wchar_t *photoStandardEmailPhotoUrl;
    const wchar_t *photoUrl;
    const wchar_t *reputation;
    const wchar_t *title;
    const wchar_t *v_type;
    const wchar_t *userType;
    const wchar_t *IsRichText;
    const wchar_t *Text;
    const wchar_t *conversationId;
    const wchar_t *conversationUrl;
    const wchar_t *id;
    const wchar_t *AdditionalLabel;
    const wchar_t *CommunityNickname;
    const wchar_t *CompanyName;
    const wchar_t *DisplayName;
    const wchar_t *FirstName;
    const wchar_t *Id;
    BOOL IsActive;
    BOOL IsInThisCommunity;
    const wchar_t *LastName;
    const wchar_t *Color;
    const wchar_t *LargeIconUrl;
    const wchar_t *MediumIconUrl;
    const wchar_t *SmallIconUrl;
    const wchar_t *SvgIconUrl;
    const wchar_t *MySubscription;
    const wchar_t *Name;
    const wchar_t *Message;
    const wchar_t *FullEmailPhotoUrl;
    const wchar_t *LargePhotoUrl;
    const wchar_t *MediumPhotoUrl;
    const wchar_t *PhotoVersionId;
    const wchar_t *SmallPhotoUrl;
    const wchar_t *StandardEmailPhotoUrl;
    const wchar_t *v_Url;
    const wchar_t *Reputation;
    const wchar_t *Title;
    const wchar_t *v_Type;
    const wchar_t *senderUrl;
    const wchar_t *UserType;
    const wchar_t *sendingCommunity;
    const wchar_t *sentDate;
    const wchar_t *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 = CkHttpW_Create();

    // Adds the "Authorization: Bearer <access_token>" header.
    CkHttpW_putAuthToken(http,L"<access_token>");

    resp = CkHttpResponseW_Create();
    success = CkHttpW_HttpNoBody(http,L"POST",L"message&recipients=<USER1_ID>,<USER2_ID>",resp);
    if (success == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        CkHttpResponseW_Dispose(resp);
        return;
    }

    sbResponseBody = CkStringBuilderW_Create();
    CkHttpResponseW_GetBodySb(resp,sbResponseBody);

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);
    CkJsonObjectW_putEmitCompact(jResp,FALSE);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",CkJsonObjectW_emit(jResp));

    respStatusCode = CkHttpResponseW_getStatusCode(resp);
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkHttpResponseW_header(resp));
        wprintf(L"Failed.\n");
        CkHttpW_Dispose(http);
        CkHttpResponseW_Dispose(resp);
        CkStringBuilderW_Dispose(sbResponseBody);
        CkJsonObjectW_Dispose(jResp);
        return;
    }

    // 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 = CkJsonObjectW_stringOf(jResp,L"body.isRichText");
    Text = CkJsonObjectW_stringOf(jResp,L"body.text");
    conversationId = CkJsonObjectW_stringOf(jResp,L"conversationId");
    conversationUrl = CkJsonObjectW_stringOf(jResp,L"conversationUrl");
    id = CkJsonObjectW_stringOf(jResp,L"id");
    AdditionalLabel = CkJsonObjectW_stringOf(jResp,L"sender.additionalLabel");
    CommunityNickname = CkJsonObjectW_stringOf(jResp,L"sender.communityNickname");
    CompanyName = CkJsonObjectW_stringOf(jResp,L"sender.companyName");
    DisplayName = CkJsonObjectW_stringOf(jResp,L"sender.displayName");
    FirstName = CkJsonObjectW_stringOf(jResp,L"sender.firstName");
    Id = CkJsonObjectW_stringOf(jResp,L"sender.id");
    IsActive = CkJsonObjectW_BoolOf(jResp,L"sender.isActive");
    IsInThisCommunity = CkJsonObjectW_BoolOf(jResp,L"sender.isInThisCommunity");
    LastName = CkJsonObjectW_stringOf(jResp,L"sender.lastName");
    Color = CkJsonObjectW_stringOf(jResp,L"sender.motif.color");
    LargeIconUrl = CkJsonObjectW_stringOf(jResp,L"sender.motif.largeIconUrl");
    MediumIconUrl = CkJsonObjectW_stringOf(jResp,L"sender.motif.mediumIconUrl");
    SmallIconUrl = CkJsonObjectW_stringOf(jResp,L"sender.motif.smallIconUrl");
    SvgIconUrl = CkJsonObjectW_stringOf(jResp,L"sender.motif.svgIconUrl");
    MySubscription = CkJsonObjectW_stringOf(jResp,L"sender.mySubscription");
    Name = CkJsonObjectW_stringOf(jResp,L"sender.name");
    Message = CkJsonObjectW_stringOf(jResp,L"sender.outOfOffice.message");
    FullEmailPhotoUrl = CkJsonObjectW_stringOf(jResp,L"sender.photo.fullEmailPhotoUrl");
    LargePhotoUrl = CkJsonObjectW_stringOf(jResp,L"sender.photo.largePhotoUrl");
    MediumPhotoUrl = CkJsonObjectW_stringOf(jResp,L"sender.photo.mediumPhotoUrl");
    PhotoVersionId = CkJsonObjectW_stringOf(jResp,L"sender.photo.photoVersionId");
    SmallPhotoUrl = CkJsonObjectW_stringOf(jResp,L"sender.photo.smallPhotoUrl");
    StandardEmailPhotoUrl = CkJsonObjectW_stringOf(jResp,L"sender.photo.standardEmailPhotoUrl");
    v_Url = CkJsonObjectW_stringOf(jResp,L"sender.photo.url");
    Reputation = CkJsonObjectW_stringOf(jResp,L"sender.reputation");
    Title = CkJsonObjectW_stringOf(jResp,L"sender.title");
    v_Type = CkJsonObjectW_stringOf(jResp,L"sender.type");
    senderUrl = CkJsonObjectW_stringOf(jResp,L"sender.url");
    UserType = CkJsonObjectW_stringOf(jResp,L"sender.userType");
    sendingCommunity = CkJsonObjectW_stringOf(jResp,L"sendingCommunity");
    sentDate = CkJsonObjectW_stringOf(jResp,L"sentDate");
    url = CkJsonObjectW_stringOf(jResp,L"url");
    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"body.messageSegments");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"recipients");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        additionalLabel = CkJsonObjectW_stringOf(jResp,L"recipients[i].additionalLabel");
        communityNickname = CkJsonObjectW_stringOf(jResp,L"recipients[i].communityNickname");
        companyName = CkJsonObjectW_stringOf(jResp,L"recipients[i].companyName");
        displayName = CkJsonObjectW_stringOf(jResp,L"recipients[i].displayName");
        firstName = CkJsonObjectW_stringOf(jResp,L"recipients[i].firstName");
        id = CkJsonObjectW_stringOf(jResp,L"recipients[i].id");
        isActive = CkJsonObjectW_BoolOf(jResp,L"recipients[i].isActive");
        isInThisCommunity = CkJsonObjectW_BoolOf(jResp,L"recipients[i].isInThisCommunity");
        lastName = CkJsonObjectW_stringOf(jResp,L"recipients[i].lastName");
        motifColor = CkJsonObjectW_stringOf(jResp,L"recipients[i].motif.color");
        motifLargeIconUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].motif.largeIconUrl");
        motifMediumIconUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].motif.mediumIconUrl");
        motifSmallIconUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].motif.smallIconUrl");
        motifSvgIconUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].motif.svgIconUrl");
        mySubscription = CkJsonObjectW_stringOf(jResp,L"recipients[i].mySubscription");
        name = CkJsonObjectW_stringOf(jResp,L"recipients[i].name");
        outOfOfficeMessage = CkJsonObjectW_stringOf(jResp,L"recipients[i].outOfOffice.message");
        photoFullEmailPhotoUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].photo.fullEmailPhotoUrl");
        photoLargePhotoUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].photo.largePhotoUrl");
        photoMediumPhotoUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].photo.mediumPhotoUrl");
        photoPhotoVersionId = CkJsonObjectW_stringOf(jResp,L"recipients[i].photo.photoVersionId");
        photoSmallPhotoUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].photo.smallPhotoUrl");
        photoStandardEmailPhotoUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].photo.standardEmailPhotoUrl");
        photoUrl = CkJsonObjectW_stringOf(jResp,L"recipients[i].photo.url");
        reputation = CkJsonObjectW_stringOf(jResp,L"recipients[i].reputation");
        title = CkJsonObjectW_stringOf(jResp,L"recipients[i].title");
        v_type = CkJsonObjectW_stringOf(jResp,L"recipients[i].type");
        url = CkJsonObjectW_stringOf(jResp,L"recipients[i].url");
        userType = CkJsonObjectW_stringOf(jResp,L"recipients[i].userType");
        i = i + 1;
    }



    CkHttpW_Dispose(http);
    CkHttpResponseW_Dispose(resp);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_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}"
    }
  ]
}