skpy/user.py
def contact(self, id):
        """
        Retrieve all details for a specific contact, including fields such as birthday and mood.

        Args:
            id (str): user identifier to lookup

        Returns:
            SkypeContact: resulting contact object
        """
        try:
            json = self.skype.conn("POST", "{0}/users/batch/profiles".format(SkypeConnection.API_USER),
                                   json={"usernames": [id]}, auth=SkypeConnection.Auth.SkypeToken).json()
            contact = SkypeContact.fromRaw(self.skype, json[0])
            if contact.id not in self.contactIds:
                self.contactIds.append(contact.id)
            return self.merge(contact)
        except SkypeApiException as e:
            if len(e.args) >= 2 and getattr(e.args[1], "status_code", None) == 403:
                # Not a contact, so no permission to retrieve information.
                return None
            raise
def contact(self, id):
        """
        Retrieve all details for a specific contact, including fields such as birthday and mood.

        Args:
            id (str): user identifier to lookup

        Returns:
            SkypeContact: resulting contact object
        """
        try:
            json = self.skype.conn("POST", "{0}/users/batch/profiles".format(SkypeConnection.API_USER),
                                   json={"usernames": [id]}, auth=SkypeConnection.Auth.SkypeToken).json()
            contact = SkypeContact.fromRaw(self.skype, json[0])
            if contact.id not in self.contactIds:
                self.contactIds.append(contact.id)
            return self.merge(contact)
        except SkypeApiException as e:
            if len(e.args) >= 2 and getattr(e.args[1], "status_code", None) == 403:
                # Not a contact, so no permission to retrieve information.
                return None
            raise
Retrieve all details for a specific contact, including fields such as birthday and mood.

        Args:
            id (str): user identifier to lookup

        Returns:
            SkypeContact: resulting contact object