Channel deauthorize
Channel Deauthorize
User withdraw permission allow interacting with the channel. Execute this process by making a DELETE request to endpoint /api/v0.9/channels/{id}/deauthorize.
Request Header
Request Headers
Name |
Description |
Type |
Example |
Authorization |
Access token of user. In the format ‘Bearer xxxxxxxxxxx’ |
String |
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImQ1ZjQzYWEwNjFiZGM5NzYwMTQ2ZGY4ZjE2NWMzZTE0NGQ1ZjM0N2Y0OTYyYzEyNzA2OGYzYzlmYzM1N2E5NDNiMWNmNWY4NjZhNTVjMzMzIn0.eyJhdWQiOiIxNjc4NCIsImp0aSI6ImQ1ZjQzYWEwNjFiZGM5NzYwMTQ2ZGY4ZjE2NWMzZTE0NGQ1ZjM0N2Y0OTYyYzEyNzA2OGYzYzlmYzM1N2E5NDNiMWNmNWY4NjZhNTVjMzMzIiwiaWF0IjoxNTAwMzc0MTc4LCJuYmYiOjE1MDAzNzQxNzgsImV4cCI6MTUzMTkxMDE3OCwic3ViIjoiNDg1Iiwic2NvcGVzIjpbXX0.qE5_mShXUftne7i2YHkjiu_LvN626_YYk7dnTfhm7H8VMcDyYvf-a4lw5XZBvXEeMLXsPkyxwXT0XDr9BzR1zZaQf9WU8CuOu_98cBeOIwgrviVtHFPDwo68go9AgI3QNIof6CM37QO_wDkeXQQHF8StG03bzMURvH_eMBmO9GoRexwVsanxtROJWlEuvDgvG9fK28d1376Ff5fkpMMvGWyGLW5EZinpXzhF7UObKTFRQJHHjuTPElKJfiA0eEeQOhCsU5dl5riKjJaAO7248OwXvAXSHZfshrRKb_aQs03OWu2Hq2tWhav8x6_tVKCZmpTlvR6-DAKQJf6_YDF5w3f5Som2yn8kR8lCpB6s2vp9nFnI2TXHCWdUxDvRYm9Vf_bd0qd4fXrSVb2_SYiARC-Tda2yDT4pPRv_6P-30fesB9dU9A3QqeIX47N7iHpIN1stu3MrgFKcZDbhy9ZZqb6a6qjPz2YOvkoWscBDdiBm1TqwTFfREYlUUxJReyjIs4DokuDXUEO60P6F97LbYitjYwd5DaqR94vMPuzcN8sU2Oc9Bpd6iGOc29CCxjdySw1JxdWcZUjzGEE00vuuggXNUNI5W5h0xI1S3OPGXlXNhYEZ1zCDiiIj5YYPU_P4j9xqLKusjrlRBUuJWsLVRy25cb2hX00GJfW7kIr3-rE9xqLKusjrlRBUuJWsLVRy25cb2hX00GJfW7kIr3-rE9xqLKusjrlRBUuJWsLVRy25cb2hX00GJfW7kIr3-rE |
X-Benlly-Request-Device |
Type of the device in use. Available options included
- ios
- android
- web
- infoboard
- windows
|
String |
android |
URL Parameters
URL Parameters
Name |
Description |
Type |
Example |
id |
ID of the channel |
Integer |
1 |
Request Parameters
Request parameters for deauthorizing a channel is different, depending on the property ‘auth-type’ of each channel.
Channel have property ‘auth_type’ is ‘push_notification’
Request Parameters
Name |
Description |
Type |
Example |
token |
The access token to the Notification service, acquired by client beforehand |
String |
EAACEdEose0cBAGSMI90DUxkU7iVoWhpqTPAEneZB1tITkfUgNQbztCNFQpH2U5qEPUUKx3qYeuSVwKRrTs1JuSnrWvUi5ttn6x9ZBWDauNIzZBYHzZBqvYEqHVHB43bqrtlZCQVIyuiUZBXEmaZCavU30hcZALtd2I6zYcW7UuRbLAZDZD |
Channel have property ‘auth_type’ is not ‘push_notification’
There are no required Request parameters.
Response Format
Like parameter, response format also depend on ‘auth_type’ property of the target channel. In case of successful, response will be of following format.
Channel have property ‘auth_type’ is ‘push_notification’
{
"data": {
"udid": "7f0abbcd-fb03-4484-aaba-a0211d9c14e2",
"device_token": "EAACEdEose0cBAGSMI90DUxkU7iVoWhpqTPAEneZB1tITkfUgNQbztCNFQpH2U5qEPUUKx3qYeuSVwKRrTs1JuSnrWvUi5ttn6x9ZBWDauNIzZBYHzZBqvYEqHVHB43bqrtlZCQVIyuiUZBXEmaZCavU30hcZALtd2I6zYcW7UuRbLAZDZD",
"expired_at": null,
"expired": false,
"created_at": "2016-04-01T12:30:31+09:00",
"updated_at": "2016-04-01T12:30:31+09:00"
}
}
Channel have property ‘auth_type’ is ‘oauth’ or ‘oauth_api’
{
"data": {
"social_id": "1249817450",
"access_token": "EAACEdEose0cBAGSMI90DUxkU7iVoWhpqTPAEneZB1tITkfUgNQbztCNFQpH2U5qEPUUKx3qYeuSVwKRrTs1JuSnrWvUi5ttn6x9ZBWDauNIzZBYHzZBqvYEqHVHB43bqrtlZCQVIyuiUZBXEmaZCavU30hcZALtd2I6zYcW7UuRbLAZDZD",
"secret_token": null,
"expired_at": "2016-10-01T12:30:31+09:00",
"expired": true,
"created_at": "2016-04-01T12:30:31+09:00",
"updated_at": "2016-04-01T12:30:31+09:00"
}
}