skpy/conn.py
def subscribe(self):
        """
        Subscribe to contact and conversation events.  These are accessible through :meth:`getEvents`.
        """
        self.conn("POST", "{0}/users/ME/endpoints/{1}/subscriptions".format(self.conn.msgsHost, self.id),
                  auth=SkypeConnection.Auth.RegToken,
                  json={"interestedResources": ["/v1/threads/ALL",
                                                "/v1/users/ME/contacts/ALL",
                                                "/v1/users/ME/conversations/ALL/messages",
                                                "/v1/users/ME/conversations/ALL/properties"],
                        "template": "raw",
                        "channelType": "httpLongPoll"})
        self.subscribed = True
def subscribe(self):
        """
        Subscribe to contact and conversation events.  These are accessible through :meth:`getEvents`.
        """
        self.conn("POST", "{0}/users/ME/endpoints/{1}/subscriptions".format(self.conn.msgsHost, self.id),
                  auth=SkypeConnection.Auth.RegToken,
                  json={"interestedResources": ["/v1/threads/ALL",
                                                "/v1/users/ME/contacts/ALL",
                                                "/v1/users/ME/conversations/ALL/messages",
                                                "/v1/users/ME/conversations/ALL/properties"],
                        "template": "raw",
                        "channelType": "httpLongPoll"})
        self.subscribed = True
Subscribe to contact and conversation events.  These are accessible through :meth:`getEvents`.