This API is used to unsubscribe user from a topic.

The **Unsubscribe Users from a Topic response is specified as follows:

URL

Unsubscribe Multiple Users from a Topic

https://api.imiconnect.io/rtmsAPI/api/v1/apps/$(appid)/topics/$(topicid)/users?users=$(users)

For example: In the URL http://api.imiconnect.io/rtmsAPI/api/v1/apps/BB20183142/topics/591d44c3e4b09eee109c1541/users?users=2315,2365,2335,5894,

Where
appid = BB20183142, topicid = 591d44c3e4b09eee109c1541, and users = 2315, 2365, 2335, 5894

Method

DELETE

Request Headers

Request HeaderDescription
secretKeySecret key generated in backend application.
content-typeapplication/json

Response Example

{
	"trans_id" : "f2cc5fca-715e-4a86-b457-574bb7ba48d4",
	"description" : "Failed",
	"code" : 1,
	"success_users" : ["2315","2335"],
	"fail_users" : ["5894","2365"]
}
Language
Credentials
Header
Copyright © 2000 - 2021 IMImobile Limited | All Rights Reserved