diff --git a/docs/concepts/authentication.mdx b/docs/concepts/authentication.mdx index b71663e..d48a73a 100644 --- a/docs/concepts/authentication.mdx +++ b/docs/concepts/authentication.mdx @@ -152,7 +152,7 @@ client = FlareApiClient(api_key=api_key) token: str = client.generate_token() # Now we can use our token to access the testing endpoint. -resp = client.get("https://api.flare.io/tokens/test") +resp = client.get("/tokens/test") print(resp.json()) ``` diff --git a/docs/concepts/paging.mdx b/docs/concepts/paging.mdx index f822390..a0ef8a4 100644 --- a/docs/concepts/paging.mdx +++ b/docs/concepts/paging.mdx @@ -87,7 +87,7 @@ while True: # Fetch the next page resp = api_client.get( - "https://api.flare.io/leaksdb/v2/sources", + "/leaksdb/v2/sources", params=params, ) resp.raise_for_status() diff --git a/docs/concepts/sdk.mdx b/docs/concepts/sdk.mdx index 53bd63f..218592e 100644 --- a/docs/concepts/sdk.mdx +++ b/docs/concepts/sdk.mdx @@ -40,6 +40,6 @@ client = FlareApiClient( # We don't need to generate an API token manually. # We can already call this endpoint and the library # will automatically authenticate the request for us. -resp = client.get("https://api.flare.io/tokens/test") +resp = client.get("/tokens/test") print(resp.json()) ``` diff --git a/docs/guides/credentials-export-domain.mdx b/docs/guides/credentials-export-domain.mdx index cb113ec..d12faf6 100644 --- a/docs/guides/credentials-export-domain.mdx +++ b/docs/guides/credentials-export-domain.mdx @@ -74,7 +74,7 @@ while True: # Fetch the next page resp = api_client.get( - f"https://api.flare.io/leaksdb/identities/by_domain/{domain_name}", + f"/leaksdb/identities/by_domain/{domain_name}", params={ "from": from_, }, diff --git a/docs/guides/global-search.mdx b/docs/guides/global-search.mdx index e831cb7..6ef239b 100644 --- a/docs/guides/global-search.mdx +++ b/docs/guides/global-search.mdx @@ -92,7 +92,7 @@ while True: # Fetch the next page resp = api_client.get( - "https://api.flare.io/firework/v2/search/", + "/firework/v2/search/", params=params, ) resp.raise_for_status() diff --git a/docs/guides/tenant-events.mdx b/docs/guides/tenant-events.mdx index 86f01b4..4636665 100644 --- a/docs/guides/tenant-events.mdx +++ b/docs/guides/tenant-events.mdx @@ -69,7 +69,7 @@ while True: # Fetch the next page resp = api_client.get( - "https://api.flare.io/firework/v2/me/feed", + "/firework/v2/me/feed", params=params, ) resp.raise_for_status() diff --git a/requirements.txt b/requirements.txt index f7f402d..f9052cb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ python-frontmatter==1.1.0 requests==2.32.3 pytest==8.3.2 types-requests==2.32.0.20240712 -flareio>=0.1.8 +flareio>=0.1.14