post https://api.imiconnect.io/rtmsAPI/api/v1/apps/$(appid)/topics/$(topicid)/users
This API is used to subscribe users to a topic.
Request
The Subscribe Topic request is specified as follows:
Request Headers
Request Header | Description |
---|---|
secretKey | Secret key generated in backend application. |
content-type | application/json |
##Request Example
["2315","2365","2335","5894"]
Response Example
{
"trans_id" : "f2cc5fca-715e-4a86-b457-574bb7ba48d4",
"description" : "Failed",
"code" : 1,
"success_users" : ["2315","2335"],
"fail_users" : ["5894","2365"]
}