Module Expr Str Import alias TryExcept body Import alias identifier ImportFrom alias handlers ExceptHandler type NameLoad body Import alias identifier ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad ListLoad Assign AttributeStore NameLoad attr ListLoad Str Str Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Num While CompareLt NameLoad Call NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd NameStore Num If NameLoad body Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore IfExp NameLoad BinOpAdd AttributeLoad NameLoad attr ListLoad NameLoad AttributeLoad NameLoad attr Return Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body FunctionDef arguments args defaults vararg kwarg body Expr Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Return Call AttributeLoad NameLoad attr decorator_list Return NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults vararg kwarg body Expr Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore IfExp CompareIn Str NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr Str NameLoad Assign NameStore IfExp CompareIn Str NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Return NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A HTTP Client library N/A json N/A N/A N/A urllib.request urllib urllib.parse urlencode N/A N/A N/A ImportError N/A N/A urllib2 urllib urllib urlencode Response N/A object N/A N/A Holds the response from an API call. __init__ N/A N/A self response N/A N/A N/A 
        :param response: The return value from a open call
                         on a urllib.build_opener()
        :type response:  urllib response object
         N/A N/A self _status_code N/A N/A response getcode N/A N/A self _response_body N/A N/A response read N/A N/A self _response_headers N/A N/A response info N/A status_code N/A N/A self N/A N/A N/A 
        :return: integer, status code of API call
         N/A N/A self _status_code N/A property response_body N/A N/A self N/A N/A N/A 
        :return: response from the API
         N/A N/A self _response_body N/A property response_headers N/A N/A self N/A N/A N/A 
        :return: dict of response headers
         N/A N/A self _response_headers N/A property N/A Client N/A object N/A N/A Quickly and easily access any REST or REST-like API. __init__ N/A N/A self host request_headers version url_path N/A None None None N/A N/A 
        :param host: Base URL for the api. (e.g. https://api.sendgrid.com)
        :type host:  string
        :param request_headers: A dictionary of the headers you want
                                applied on all calls
        :type request_headers: dictionary
        :param version: The version number of the API.
                        Subclass _build_versioned_url for custom behavior.
                        Or just pass the version as part of the URL
                        (e.g. client._("/v3"))
        :type version: integer
        :param url_path: A list of the url path segments
        :type url_path: list of strings
         N/A N/A self host host N/A N/A self request_headers N/A request_headers N/A N/A N/A self _version version N/A N/A self _url_path N/A url_path N/A N/A N/A self methods N/A delete get patch post put N/A _build_versioned_url N/A N/A self url N/A N/A N/A Subclass this function for your own needs.
           Or just pass the version as part of the URL
           (e.g. client._('/v3'))
        :param url: URI portion of the full URL being requested
        :type url: string
        :return: string
         N/A N/A N/A {0}/v{1}{2} format N/A self host N/A str N/A self _version url N/A _build_url N/A N/A self query_params N/A N/A N/A Build the final URL to be passed to urllib

        :param query_params: A dictionary of all the query parameters
        :type query_params: dictionary
        :return: string
         N/A url N/A count 0 N/A N/A count N/A len N/A self _url_path N/A N/A url N/A N/A /{0} format N/A N/A self _url_path N/A count N/A count 1 N/A query_params N/A N/A url_values N/A urlencode N/A sorted N/A N/A query_params items N/A url N/A N/A {0}?{1} format url url_values N/A url N/A N/A self _version N/A N/A self _build_versioned_url url N/A N/A self host url N/A url N/A _update_headers N/A N/A self request_headers N/A N/A N/A Update the headers for the request

        :param request_headers: headers to set for the API call
        :type response: dictionary
        :return: dictionary
         N/A N/A N/A N/A self request_headers update request_headers N/A _build_client N/A N/A self name N/A None N/A N/A Make a new Client object

        :param name: Name of the url segment
        :type name: string
        :return: A Client object
         N/A url_path N/A name N/A N/A self _url_path N/A name N/A self _url_path N/A N/A Client host N/A self host version N/A self _version request_headers N/A self request_headers url_path url_path N/A _make_request N/A N/A self opener request N/A N/A N/A Make the API call and return the response. This is separated into
           it's own function, so we can mock it easily for testing.

        :param opener:
        :type opener:
        :param request: url payload to request
        :type request: urllib.Request object
        :return: urllib response
         N/A N/A N/A opener open request N/A _ N/A N/A self name N/A N/A N/A Add variable values to the url.
           (e.g. /your/api/{variable_value}/call)
           Another example: if you have a Python reserved word, such as global,
           in your url, you must use this method.

        :param name: Name of the url segment
        :type name: string
        :return: Client object
         N/A N/A N/A self _build_client name N/A __getattr__ N/A N/A self name N/A N/A N/A Dynamically add method calls to the url, then call a method.
           (e.g. client.name.name.method())
           You can also add a version number by using .version(<int>)

        :param name: Name of the url segment or method call
        :type name: string or integer if name == version
        :return: mixed
         N/A N/A name version N/A get_version N/A N/A N/A args kwargs N/A N/A 
                :param args: dict of settings
                :param kwargs: unused
                :return: string, version
                 N/A N/A self _version N/A args N/A 0 N/A N/A N/A self _build_client N/A N/A get_version N/A N/A name N/A self methods N/A N/A method N/A N/A name upper http_request N/A N/A N/A args kwargs N/A N/A Make the API call
                :param args: unused
                :param kwargs:
                :return: Client object
                 N/A N/A request_headers kwargs N/A N/A N/A N/A self _update_headers N/A kwargs N/A request_headers N/A data N/A N/A request_body kwargs N/A N/A N/A N/A json dumps N/A kwargs N/A request_body encode utf-8 None N/A params N/A N/A query_params kwargs N/A kwargs N/A query_params None N/A opener N/A N/A urllib build_opener N/A request N/A N/A urllib Request N/A N/A self _build_url params data data N/A N/A self request_headers N/A N/A N/A key value N/A N/A N/A self request_headers items N/A N/A N/A N/A request add_header key value N/A N/A request get_method N/A N/A N/A N/A method N/A N/A Response N/A N/A self _make_request opener request N/A N/A http_request N/A N/A N/A N/A self _ name N/A N/A