Skip to content

Commit

Permalink
remove domain from sdk examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aviau committed Aug 19, 2024
1 parent e4c58ba commit 107ee3e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/concepts/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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())
```
</Accordion>
Expand Down
2 changes: 1 addition & 1 deletion docs/concepts/paging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion docs/concepts/sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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())
```
2 changes: 1 addition & 1 deletion docs/guides/credentials-export-domain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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_,
},
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/global-search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/tenant-events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 107ee3e

Please sign in to comment.