Set the user's subscription for this thread :param bool subscribed: (required), determines if notifications should be received from this thread. :param bool ignored: (required), determines if notifications should be ignored from this thread. :returns:
(self, subscribed, ignored)
| 79 | return self._boolean(self._patch(self._api), 205, 404) |
| 80 | |
| 81 | def set_subscription(self, subscribed, ignored): |
| 82 | """Set the user's subscription for this thread |
| 83 | |
| 84 | :param bool subscribed: (required), determines if notifications should |
| 85 | be received from this thread. |
| 86 | :param bool ignored: (required), determines if notifications should be |
| 87 | ignored from this thread. |
| 88 | :returns: :class:`Subscription <Subscription>` |
| 89 | """ |
| 90 | url = self._build_url('subscription', base_url=self._api) |
| 91 | sub = {'subscribed': subscribed, 'ignored': ignored} |
| 92 | json = self._json(self._put(url, data=dumps(sub)), 200) |
| 93 | return self._instance_or_null(Subscription, json) |
| 94 | |
| 95 | def subscription(self): |
| 96 | """Checks the status of the user's subscription to this thread. |
nothing calls this directly
no test coverage detected