Esempio n. 1
0
 def get_my_followers(self):
     """
     """
     return_type = PersonPropertiesCollection(self.context)
     qry = ServiceOperationQuery(self, "GetMyFollowers", None, None, None,
                                 return_type)
     self.context.add_query(qry)
     return return_type
    def get_people_followed_by(self, accountName):
        """

        :type accountName: str
        :return: PersonPropertiesCollection
        """
        result = PersonPropertiesCollection(self.context)
        params = {"accountName": accountName}
        qry = ServiceOperationQuery(self, "GetPeopleFollowedBy", params, None,
                                    None, result)
        self.context.add_query(qry)
        return result
    def get_followers_for(self, account_name):
        """
        Gets the people who are following the specified user.

        :param str account_name:
        :return:
        """
        result = ClientResult(PersonPropertiesCollection(self.context))
        params = {"accountName": account_name}
        qry = ServiceOperationQuery(self, "GetFollowersFor", params, None,
                                    None, result)
        self.context.add_query(qry)
        return result