'Subscribe the user to this repository\'s notifications.
.. versionadded:: 1.0
This replaces ``Repository#set_subscription``
:param bool subscribed: (required), determines if notifications should
be received from this repository.
:param bool ignored: (required), determines if notifications should be
ignored from this repository.
:returns: :class:`Subscription <github3.notifications.Subscription>`'

@requires_auth
def subscribe(self):

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