get https://api.imiconnect.io/rtmsAPI/api/v1/apps/$(appid)/topics/$(topicid)/users?start=0
This API will get all the subscribers of a topic.
Request
The Get All Subscribers of a Topic API request is specified as follows:
URL | https://api.imiconnect.io/rtmsAPI/api/v1/apps/$(appid)/topics/$(topicid)/users?start=0 Example: In the URL http://api.imiconnect.io/rtmsAPI/api/v1/apps/BB20183142/topics/591d7b7de4b09e0d95d4f73d/users?start=0 Where appid = BB20183142, topicid = 591d7b7de4b09e0d95d4f73d, and start is the record pointer where to start in the subscriber list. A maximum of 50 subscribers can be returned (if available). |
Method | GET |
Request Headers
The following table describes the request headers:
Request Header | Description |
---|---|
secretKey | Secret key generated in backend application. |
content-type | application/json |
##Response Example
{
"total" : "1",
"users" : [
"2315"
],
"count" : 1,
"trans_id" : "36a7644a-8f2a-492c-b3e9-13422cb35260",
"description" : "success",
"code" : 0
}