Channel Muting
Endpoints:
Muting a channel prevents other users from being able to auto-subscribe you to that channel.
GET /users/me/channels/muted
Token:
Scope:
Retrieve a list of channels the authenticated user has muted.
Example
curl "https://api.pnut.io/v1/users/me/channels/muted" \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-H "X-Pretty-Json: 1"
Returns a list of muted channels.
{
"meta": {
"more": false,
"min_id": "0",
"max_id": "0",
"code": 200
},
"data": [
{"...Channel Object..."}
]
}
PUT /channels/{channel_id}/mute
Token:
Scope:
Mute subscriptions for a channel. Muting unsubscribes, if you were subscribed.
URL Parameters
Name | Description |
---|---|
channel_id |
ID of the channel to mute. |
Example
curl "https://api.pnut.io/v1/channels/2/mute" \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-X PUT \
-H "X-Pretty-Json: 1"
Returns the muted channel.
{
"meta": {
"code": 200
},
"data": {"...Channel Object..."}
}
DELETE /channels/{channel_id}/mute
Token:
Scope:
Delete a subscription mute for a channel.
URL Parameters
Name | Description |
---|---|
channel_id |
ID of the channel to unmute. |
Example
curl "https://api.pnut.io/v1/channels/4/mute" \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-X DELETE \
-H "X-Pretty-Json: 1"
Returns the unmuted channel.
{
"meta": {
"code": 200
},
"data": {"....Channel Object..."}
}