parameters: (method: str, path: str, *args, headers={}, **kwargs)
return_statement: return res.json()
docstring: Makes a request to the Stocktwits API, passing along the username and password as
      authorization headers.
docstring_summary: Makes a request to the Stocktwits API, passing along the username and password as
      authorization headers.
docstring_tokens: Makes a request to the Stocktwits API passing along the username and password as authorization headers .
function: 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()
function_tokens: 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 ( )