added more about list_contacts, list_groups

This commit is contained in:
Carl Bingel 2020-02-18 22:44:23 +01:00
parent ce06d51850
commit 8516090552

View file

@ -90,7 +90,7 @@ Send Message Request (to group chat)
} }
], ],
"groupInfo": { "groupInfo": {
"groupId": "FRasdb6mSVwHwetHSX8mkjQ==" "groupId": "FRasdb7mSVwGwetQSX8mkjQ=="
} }
}, },
} }
@ -128,7 +128,7 @@ Message Envelope Received, sent to group chat with some attachements present
} }
], ],
"groupInfo": { "groupInfo": {
"groupId": "FRasdb6mSVwHwetHSX8mkjQ==", "groupId": "FRasdb7mSVwGwetQSX8mkjQ==",
"members": null, "members": null,
"name": null, "name": null,
"type": "DELIVER" "type": "DELIVER"
@ -141,9 +141,71 @@ Message Envelope Received, sent to group chat with some attachements present
} }
List known groups and their properties
{
"reqType": "list_groups"
}
Alive Request List groups response
Test if signal-cli is still responding {
"respType":"list_groups",
"reqID":null,
"statusCode":0,
"data": [
{
"groupId":"+rtjbBy781Tgfpkc9HiNCg==",
"name":"test-group",
"members": [
"+46123445566",
"+46222222222",
"+4687345232989874",
],
"color":"blue",
"blocked":false,
"active":true,
"inboxPosition":null,
"archived":false
}
]
}
List contacts and their properties
{
"reqType": "list_contacts"
}
List groups response
{
"respType":"list_contacts",
"reqID":null,
"statusCode":0,
"data": [
{
"name":"Persons A Full Name",
"number":"+46999999",
"color":"blue_grey",
"profileKey":null,
"blocked":false,
"inboxPosition":50,
"archived":true
},
{
"name":"Persons B Full Name",
"number":"+46999444444",
"color":"teal",
"profileKey":null,
"blocked":false,
"inboxPosition":0,
"archived":true
}
]
}
Alive Request (Test if signal-cli is still responding)
{ {
"reqType": "alive" "reqType": "alive"
} }
@ -155,8 +217,7 @@ Alive Response
} }
Exit Request Exit Request (Request immediate termination of signal-cli client)
Request immediate termination of signal-cli client
{ {
"reqType": "exit" "reqType": "exit"
} }