def __init__(self, session=None, auth=None, **options):
        """A :class:`Client` object for interacting with Asana's API.

        A Client object with session, optional auth handler, and options.

        """
        self.session = session or requests.Session()
        self.auth = auth
        self.headers = options.pop('headers', {})
        # merge the provided options (if any) with the global DEFAULTS
        self.options = _merge(self.DEFAULT_OPTIONS, options)
        # intializes each resource, injecting this client object into the
        # constructor
        for name, Klass in RESOURCE_CLASSES.items():
            setattr(self, name, Klass(self))
def __init__ ( self , session = None , auth = None , ** options ) : self . session = session or requests . Session ( ) self . auth = auth self . headers = options . pop ( 'headers' , { } ) self . options = _merge ( self . DEFAULT_OPTIONS , options ) for name , Klass in RESOURCE_CLASSES . items ( ) : setattr ( self , name , Klass ( self ) )
A :class:`Client` object for interacting with Asana's API.

        A Client object with session, optional auth handler, and options.