def add_star(self, board_id, position="bottom"): """Create a star :param board_iid: Id of the board to star :param position: Optional position of the board star :rtype: Star """ post_args = {'idBoard': board_id, 'pos': position} obj = self.fetch_json('members/me/boardStars', http_method='POST', post_args=post_args) return Star.from_json(json_obj=obj)
def add_star(self, board_id, position = "bottom"): """Create a star :param board_id: Id of the board to star :param position: Optional position of the board star :rtype: Star """ post_args = {'idBoard': board_id, 'pos': position} obj = self.fetch_json('members/me/boardStars', http_method='POST', post_args=post_args) return Star.from_json(json_obj=obj)
def list_stars(self): """ Returns all boardStars for your Trello user :return: a list of Python objects representing the Trello board stars. :rtype: list of Board Stars Each board has the following noteworthy attributes: - id: the board star's identifier - idBoard: ID of starred board - pos: position of the board star """ json_obj = self.fetch_json('/members/me/boardStars') return [Star.from_json(json_obj=obj) for obj in json_obj]