Back to All

Message list api getting error message

Hello Team,
I need to get user chats using of groupID. so I called the first group info API getting group information detail.
{
"status": "success",
"generatedAt": 1643708215208,
"response": {
"id": 64467359,
"clientGroupId": "1422_com.peerlink.bgs_152_com.peerlink.bgs_233",
"name": "com.peerlink.bgs_233",
"adminId": "com.peerlink.bgs_152",
"memberUserKeys": [
"5d3011ff-67f4-42a3-a4f2-d86803caf5fc",
"443a67c9-6f41-4656-ba76-18f4a1699075"
],
"membersId": [
"com.peerlink.bgs_233",
"com.peerlink.bgs_152"
],
"removedMembersId": [],
"unreadCount": 0,
"type": 7,
"createdAtTime": 1643264595126,
"userCount": 2,
"groupUsers": [
{
"userId": "com.peerlink.bgs_233",
"status": 0,
"unreadCount": 0,
"role": 3,
"deleted": false
},
{
"userId": "com.peerlink.bgs_152",
"status": 0,
"unreadCount": 0,
"role": 1,
"deleted": false
}
],
"childKeys": [],
"childClientGroupIds": [],
"metadata": {
"152": "com.peerlink.bgs_233",
"233": "com.peerlink.bgs_152",
"subject": "GK",
"AL_CONTEXT_BASED_CHAT": "true",
"title": "Testing ios notification issues query"
},
"updatedAtTime": 1643264595152
}
}

i think this is groupID : "response": {
"id": 64467359,

correct me if i m wrong.

after that when i called massageList api

https://apps.applozic.com/rest/ws/message/v2/list

getting error like :
array (
'status' => 'error',
'errorResponse' =>
array (
0 =>
array (
'errorCode' => 'AL-GU-01',
'description' => 'User not found in Group',
'displayMessage' => 'unable to process',
),
),
'generatedAt' => 1643708152475,
)

please gouid me