skpy/user.py
def requests(self):
        """
        Retrieve any pending contact requests.

        Returns:
            :class:`SkypeRequest` list: collection of requests
        """
        requests = []
        for json in self.skype.conn("GET", "{0}/users/{1}/invites"
                                           .format(SkypeConnection.API_CONTACTS, self.skype.userId),
                                    auth=SkypeConnection.Auth.SkypeToken).json().get("invite_list", []):
            for invite in json.get("invites", []):
                # Copy user identifier to each invite message.
                invite["userId"] = SkypeUtils.noPrefix(json.get("mri"))
                requests.append(SkypeRequest.fromRaw(self.skype, invite))
        return requests
def requests(self):
        requests = []
        for json in self.skype.conn("GET", "{0}/users/{1}/invites"
                                           .format(SkypeConnection.API_CONTACTS, self.skype.userId),
                                    auth=SkypeConnection.Auth.SkypeToken).json().get("invite_list", []):
            for invite in json.get("invites", []):
                # Copy user identifier to each invite message.
                invite["userId"] = SkypeUtils.noPrefix(json.get("mri"))
                requests.append(SkypeRequest.fromRaw(self.skype, invite))
        return requests
def requests ( self ) : requests = [ ] for json in self . skype . conn ( "GET" , "{0}/users/{1}/invites" . format ( SkypeConnection . API_CONTACTS , self . skype . userId ) , auth = SkypeConnection . Auth . SkypeToken ) . json ( ) . get ( "invite_list" , [ ] ) : for invite in json . get ( "invites" , [ ] ) : # Copy user identifier to each invite message. invite [ "userId" ] = SkypeUtils . noPrefix ( json . get ( "mri" ) ) requests . append ( SkypeRequest . fromRaw ( self . skype , invite ) ) return requests
Retrieve any pending contact requests.

        Returns:
            :class:`SkypeRequest` list: collection of requests
Retrieve any pending contact requests .