Skip to content

Commit fd79ca4

Browse files
committed
additional example
1 parent a243245 commit fd79ca4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,11 @@ You can also use the `this_session` method to create a new `requests.Sesssion` o
143143
>>> session = client.this_session()
144144
>>> session.cookies.get_dict()
145145
{...} # now includes session cookies
146+
```
147+
148+
You can now make a request to a protected resource on the current node using this session object. You will be able to
149+
access the resource if you have permission:
150+
151+
```python
152+
>>> session.get(f"{client.this_node.url}/some/protected/subpath")
146153
```

0 commit comments

Comments
 (0)