def __init__(self, **kwargs):
self.session = requests.Session()<EOL>self.api_url = "<STR_LIT>"<EOL>if kwargs.get('<STR_LIT>'):<EOL><INDENT>self.api_url = kwargs.get('<STR_LIT>')<EOL><DEDENT>self.config = self.DEFAULT_CONFIG<EOL>if kwargs.get('<STR_LIT>'):<EOL><INDENT>self.config = kwargs.get('<STR_LIT>')<EOL><DEDENT>if kwargs.get('<STR_LIT>'):<EOL><INDENT>if not len(kwargs.get('<STR_LIT>')) == <NUM_LIT:2>:<EOL><INDENT>raise ImproperlyConfiguredException("<STR_LIT>")<EOL><DEDENT>self.auth = kwargs.get('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>raise ImproperlyConfiguredException("<STR_LIT>")<EOL><DEDENT>
Create an API instance.