MCPcopy
hub / github.com/mxrch/GHunt / __init__

Method __init__

ghunt/apis/clientauthconfig.py:15–31  ·  view source on GitHub ↗
(self, creds: GHuntCreds, headers: Dict[str, str] = {})

Source from the content-addressed store, hash-verified

13
14class ClientAuthConfigHttp(GAPI):
15 def __init__(self, creds: GHuntCreds, headers: Dict[str, str] = {}):
16 super().__init__()
17
18 if not headers:
19 headers = gb.config.headers
20
21 base_headers = {}
22
23 headers = {**headers, **base_headers}
24
25 self.hostname = "clientauthconfig.googleapis.com"
26 self.scheme = "https"
27
28 self.authentication_mode = None # sapisidhash, cookies_only, oauth or None
29 self.require_key = "pantheon" # key name, or None
30
31 self._load_api(creds, headers)
32
33 async def get_brand(self, as_client: httpx.AsyncClient, project_number: int) -> Tuple[bool, CacBrand]:
34 endpoint_name = inspect.currentframe().f_code.co_name

Callers

nothing calls this directly

Calls 1

_load_apiMethod · 0.80

Tested by

no test coverage detected