skpy/chat.py
def chat(self, id):
        """
        Get a single conversation by identifier.

        Args:
            id (str): single or group chat identifier
        """
        json = self.skype.conn("GET", "{0}/users/ME/conversations/{1}".format(self.skype.conn.msgsHost, id),
                               auth=SkypeConnection.Auth.RegToken, params={"view": "msnp24Equivalent"}).json()
        cls = SkypeSingleChat
        if "threadProperties" in json:
            info = self.skype.conn("GET", "{0}/threads/{1}".format(self.skype.conn.msgsHost, json.get("id")),
                                   auth=SkypeConnection.Auth.RegToken, params={"view": "msnp24Equivalent"}).json()
            json.update(info)
            cls = SkypeGroupChat
        return self.merge(cls.fromRaw(self.skype, json))
def chat(self, id):
        json = self.skype.conn("GET", "{0}/users/ME/conversations/{1}".format(self.skype.conn.msgsHost, id),
                               auth=SkypeConnection.Auth.RegToken, params={"view": "msnp24Equivalent"}).json()
        cls = SkypeSingleChat
        if "threadProperties" in json:
            info = self.skype.conn("GET", "{0}/threads/{1}".format(self.skype.conn.msgsHost, json.get("id")),
                                   auth=SkypeConnection.Auth.RegToken, params={"view": "msnp24Equivalent"}).json()
            json.update(info)
            cls = SkypeGroupChat
        return self.merge(cls.fromRaw(self.skype, json))
def chat ( self , id ) : json = self . skype . conn ( "GET" , "{0}/users/ME/conversations/{1}" . format ( self . skype . conn . msgsHost , id ) , auth = SkypeConnection . Auth . RegToken , params = { "view" : "msnp24Equivalent" } ) . json ( ) cls = SkypeSingleChat if "threadProperties" in json : info = self . skype . conn ( "GET" , "{0}/threads/{1}" . format ( self . skype . conn . msgsHost , json . get ( "id" ) ) , auth = SkypeConnection . Auth . RegToken , params = { "view" : "msnp24Equivalent" } ) . json ( ) json . update ( info ) cls = SkypeGroupChat return self . merge ( cls . fromRaw ( self . skype , json ) )
Get a single conversation by identifier.

        Args:
            id (str): single or group chat identifier
Get a single conversation by identifier .