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

Method __init__

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

Source from the content-addressed store, hash-verified

13
14class GeolocationHttp(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 = "www.googleapis.com"
26 self.scheme = "https"
27
28 self.authentication_mode = None # sapisidhash, cookies_only, oauth or None
29 self.require_key = "geolocation" # key name, or None
30
31 self._load_api(creds, headers)
32
33 async def geolocate(self, as_client: httpx.AsyncClient, bssid: str, body: dict) -> Tuple[bool, GeolocationResponse]:
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