trolly/card.py
def add_member(self, member_id):
        '''
        Add a member to this card. Returns a list of Member objects.
        '''
        members = self.fetch_json(
            uri_path=self.base_uri + '/idMembers',
            http_method='POST',
            query_params={'value': member_id}
        )

        members_list = []
        for member_json in members:
            members_list.append(self.create_member(member_json))

        return members_list
def add_member(self, member_id):
        '''
        Add a member to this card. Returns a list of Member objects.
        '''
        members = self.fetch_json(
            uri_path=self.base_uri + '/idMembers',
            http_method='POST',
            query_params={'value': member_id}
        )

        members_list = []
        for member_json in members:
            members_list.append(self.create_member(member_json))

        return members_list
def add_member ( self , member_id ) : members = self . fetch_json ( uri_path = self . base_uri + '/idMembers' , http_method = 'POST' , query_params = { 'value' : member_id } ) members_list = [ ] for member_json in members : members_list . append ( self . create_member ( member_json ) ) return members_list
Add a member to this card. Returns a list of Member objects.
Add a member to this card . Returns a list of Member objects .