(method: str, path: str, *args, headers={}, **kwargs)
return res.json()
Makes a request to the Stocktwits API, passing along the username and password as
    authorization headers.
Makes a request to the Stocktwits API, passing along the username and password as
    authorization headers.
Makes a request to the Stocktwits API passing along the username and password as authorization headers .
def stocktwits_request(method: str, path: str, *args, headers={}, **kwargs) -> object:
    """ Makes a request to the Stocktwits API, passing along the username and password as
    authorization headers. """

    req_function = map_method_name_to_requests_function(method)
    merged_headers = {**headers, "Authorization": f"OAuth {STOCKTWITS_ACCESS_TOKEN}"}
    url = f"{STOCKTWITS_BASE_URL}{path}"
    res = req_function(url, *args, headers=merged_headers, **kwargs)
    return res.json()
def stocktwits_request ( method : str , path : str , * args , headers = { } , * * kwargs ) -> object : req_function = map_method_name_to_requests_function ( method ) merged_headers = { * * headers , "Authorization" : f"OAuth {STOCKTWITS_ACCESS_TOKEN}" } url = f"{STOCKTWITS_BASE_URL}{path}" res = req_function ( url , * args , headers = merged_headers , * * kwargs ) return res . json ( )