<s> from __future__ import unicode_literals <EOL> from . . baseapi import BaseApi <EOL> class List ( BaseApi ) : <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( List , self ) . __init__ ( * args , ** kwargs ) <EOL> self . endpoint = '<STR_LIT>' <EOL> self . list_id = None <EOL> def all ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _mc_client . _get ( url = self . endpoint ) <EOL> def get ( self , list_id ) : <EOL> """<STR_LIT>""" <EOL> self . list_id = list_id <EOL> return self . _mc_client . _get ( url = self . _build_path ( list_id ) ) <EOL> def update ( self , list_id , data ) : <EOL> """<STR_LIT>""" <EOL> self . list_id = list_id <EOL> return self . _mc_client . _patch ( url = self . _build_path ( list_id ) , data = data ) <EOL> def delete ( self , list_id ) : <EOL> """<STR_LIT>""" <EOL> self . list_id = list_id <EOL> return self . _mc_client . _delete ( url = self . _build_path ( list_id ) ) <EOL> def create ( self , data ) : <EOL> """<STR_LIT>""" <EOL> return self . _mc_client . _post ( url = self . endpoint , data = data ) </s>
