How to retrieve data of personal chat message (message is a cards type and inline image).
Hi team, I am not able to get the data of inline image , cards(adaptive cards, hero cards etc) and sticker image. only getting below data in the body content which is not visible on the web it showing a error.
{"error":{"code":"InvalidAuthenticationToken","message":"Access token is empty.","innerError":{"date":"2023-04-26T13:27:06","request-id":"5cf5def8-0322-455c-977e-acb693764104","client-request-id":"5cf5def8-0322-455c-977e-acb693764104"}}}
"<p> </p>\n<img alt="Sticker image, OH YEAH!" height="250" width="334" src="https://graph.microsoft.com/v1.0/chats/19:00530808-4ae0-4fa4-87a3-f6b36d5da3cc_a8a9473c-01cc-4a19-9ae2-93cfe1d5b3c3@unq.gbl.spaces/messages/1681813026036/hostedContents/aWQ9eF8wLXNpbi1kNC1mN2FjODU4ZjY2NWM5MzYyNGU1NWMyZmMwYmIxMzg4MCx0eXBlPTEsdXJsPWh0dHBzOi8vaW4tYXBpLmFzbS5za3lwZS5jb20vdjEvb2JqZWN0cy8wLXNpbi1kNC1mN2FjODU4ZjY2NWM5MzYyNGU1NWMyZmMwYmIxMzg4MC92aWV3cy9pbWdv/$value" itemid="0-sin-d4-f7ac858f665c93624e55c2fc0bb13880"><span style="font-size:0">OH YEAH!</span>\n<p> </p>"
{
"type": "AdaptiveCard",
"body": [
{
"columns": [
{
"width": "40",
"items": [
{
"columns": [
{
"width": "auto",
"items": [
{
"color": "accent",
"text": "Requested",
"id": "approvalStatus",
"spacing": "none",
"type": "TextBlock"
}
],
"backgroundImage": {
"url": "https://graph.microsoft.com/v1.0/chats/19:00530808-4ae0-4fa4-87a3-f6b36d5da3cc_a8a9473c-01cc-4a19-9ae2-93cfe1d5b3c3@unq.gbl.spaces/messages/1681813869325/hostedContents/aWQ9LHR5cGU9MSx1cmw9aHR0cHM6Ly9pbi1hcGkuYXNtLnNreXBlLmNvbS92MS9vYmplY3RzLzAtc2luLWQzLTNhMTIxYzFlYWVkZjcwOTgyOWM5NWMwYjJmZGEzMGVkL3ZpZXdzL2ltZ19wcmV2aWV3/$value",
"fillMode": "repeatHorizontally",
"verticalAlignment": "center"
},
"verticalContentAlignment": "center",
"minHeight": "28px",
"spacing": "none",
"type": "Column"
},
{
"width": "auto",
"items": [],
"type": "Column"
}
],
"type": "ColumnSet"
}
],
"verticalContentAlignment": "center",
"type": "Column"
}
],
"id": "infoTag",
"type": "ColumnSet"
},
{
"color": "attention",
"maxLines": 2,
"text": "! Important",
"wrap": true,
"id": "approvalPriority",
"spacing": "None",
"type": "TextBlock"
},
{
"maxLines": 2,
"size": "large",
"text": "approvals sample",
"weight": "bolder",
"wrap": true,
"id": "approvalTitle",
"spacing": "small",
"type": "TextBlock"
},
{
"columns": [
{
"width": "auto",
"items": [
{
"url": "https://spoprod-a.akamaihd.net/files/fabric-cdn-prod_20200708.002/assets/item-types/32_2x/email.png",
"width": "36px",
"height": "auto",
"type": "Image"
}
],
"spacing": "none",
"type": "Column"
},
{
"items": [
{
"text": "all sample .msg",
"weight": "bolder",
"spacing": "none",
"type": "TextBlock"
},
{
"size": "small",
"text": "https://dev2systoolsgroup-my.sharepoint.com/:u:/g/personal/pragati_dev2systoolsgroup_onmicrosoft_com/EePZ3V9_VLhGm9D8J3jZVBcBnonl9yOd9Mi3TC0L1ZOgjg",
"weight": "lighter",
"spacing": "none",
"type": "TextBlock"
}
],
"type": "Column"
}
],
"style": "emphasis",
"selectAction": {
"url": "https://dev2systoolsgroup-my.sharepoint.com/:u:/g/personal/pragati_dev2systoolsgroup_onmicrosoft_com/EePZ3V9_VLhGm9D8J3jZVBcBnonl9yOd9Mi3TC0L1ZOgjg",
"title": "all sample .msg",
"type": "Action.OpenUrl"
},
"type": "ColumnSet"
},
{
"items": [
{
"columns": [
{
"width": "160px",
"items": [
{
"maxLines": 5,
"text": "Requested by",
"weight": "bolder",
"wrap": true,
"type": "TextBlock"
}
],
"type": "Column"
},
{
"width": "stretch",
"items": [
{
"maxLines": 5,
"text": "pragati agrawal",
"wrap": true,
"type": "TextBlock"
}
],
"type": "Column"
}
],
"spacing": "none",
"type": "ColumnSet"
},
{
"columns": [
{
"width": "160px",
"items": [
{
"maxLines": 5,
"text": "Pending response",
"weight": "bolder",
"wrap": true,
"type": "TextBlock"
}
],
"type": "Column"
},
{
"width": "stretch",
"items": [
{
"maxLines": 5,
"text": "sarveshSource",
"wrap": true,
"type": "TextBlock"
}
],
"type": "Column"
}
],
"spacing": "none",
"type": "ColumnSet"
}
],
"id": "aggregatedActions",
"type": "Container"
},
{
"actions": [
{
"data": {
"msteams": {
"type": "task/fetch",
"title": "View Details Click"
},
"approvalId": "e28189ab-435c-415f-92d4-117c11628eef",
"approvalType": "Basic"
},
"title": "View details",
"type": "Action.Submit"
}
],
"spacing": "Large",
"type": "ActionSet"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"refresh": {
"userIds": [
"8:orgid:00530808-4ae0-4fa4-87a3-f6b36d5da3cc"
],
"action": {
"verb": "AutoRefresh",
"data": {
"approvalId": "e28189ab-435c-415f-92d4-117c11628eef",
"approvalType": "Basic"
},
"title": "AutoRefresh",
"type": "Action.Execute"
}
}
}
AND In card case only attachement id is given i have try to get the data with that id but it giving error invalid api request. please give me the way to get images.