'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: :class:`Subscription <Subscription>`'

def set_subscription(self, subscribed, ignored):

    url = self._build_url(u'subscription', base_url=self._api)
    sub = {u'subscribed': subscribed, u'ignored': ignored}
    json = self._json(self._put(url, data=dumps(sub)), 200)
    return self._instance_or_null(Subscription, json)
