curl \
-X POST \
"https://api.rumbletalk.com/chats/123/banned-ips" \
-H "Authorization: Bearer <token>" \
-d "{\"ip\":\"1.1.1.1\"}"
{
"status": true
}
curl \
-X GET \
"https://api.rumbletalk.com/chats/123/banned-ips" \
-H "Authorization: Bearer <token>"
{
"status": true,
"count": 2,
"data": [
{
"firstIp": "1.1.1.1",
"lastIp": "1.1.1.1"
},
...
]
}
curl \
-X DELETE \
"https://api.rumbletalk.com/chats/123456/banned-ips/1.1.1.1" \
-H "Authorization: Bearer <token>"
{
"status": true
}