GroupMessageSubscribe subscribes to a group message updates (types.or it can also retrieve the history)
POST
/protocol/v1/GroupMessageSubscribe
curl \
-X POST http://api.example.com/protocol/v1/GroupMessageSubscribe \
-d '{"group_pk":"string","since":"string","until":"string","go_backwards":true}'
Request example
{
"group_pk": "string",
"since": "string",
"until": "string",
"go_backwards": true
}
Request examples
{
"group_pk": "string",
"since": "string",
"until": "string",
"go_backwards": true
}
Response examples (200)
{
"result": {
"event_context": {
"id": "string",
"parent_ids": [
"string"
],
"group_pk": "string"
},
"headers": {
"counter": "string",
"device_pk": "string",
"sig": "string",
"metadata": {}
},
"message": "string"
},
"error": {
"grpc_code": 42,
"http_code": 42,
"message": "string",
"http_status": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}
}
Response examples (200)
{
"result": {
"event_context": {
"id": "string",
"parent_ids": [
"string"
],
"group_pk": "string"
},
"headers": {
"counter": "string",
"device_pk": "string",
"sig": "string",
"metadata": {
"Additional properties:": "string"
}
},
"message": "string"
},
"error": {
"grpc_code": 42,
"http_code": 42,
"message": "string",
"http_status": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}
}
Response examples (default)
{
"error": "string",
"code": 42,
"message": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}
Response examples (default)
{
"error": "string",
"code": 42,
"message": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}