Skip to content

Commit

Permalink
RESTClient: docs: Fixed snippet definition (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
burnash authored May 17, 2024
1 parent cb38702 commit 359ec72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/website/docs/general-usage/http/rest-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ Debugging `paginate()` is trickier because it's a generator function that yields

1. Enable [logging](../../running-in-production/running.md#set-the-log-level-and-format) to see detailed information about the HTTP requests:

```bash
```sh
RUNTIME__LOG_LEVEL=INFO python my_script.py
```

Expand Down Expand Up @@ -589,7 +589,7 @@ def response_hook(response, **kwargs):

for page in client.paginate(
"/posts",
auth=BearerTokenAuth(token="your_access_token")
auth=BearerTokenAuth(token="your_access_token"),
hooks={"response": [response_hook]}
):
print(page)
Expand Down

0 comments on commit 359ec72

Please sign in to comment.