Skip to content

Commit 9a28462

Browse files
added anonymous request working with python
1 parent b9449e4 commit 9a28462

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/routes/docs/products/auth/server-side-rendering/+page.markdoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,19 @@ $account = new Account($client);
403403

404404
$result = $account->createAnonymousSession();
405405
```
406+
```python
407+
from appwrite.client import Client
408+
from appwrite.services.account import Account
409+
410+
client = (Client()
411+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
412+
.setProject('<PROJECT_ID>') # Your project ID
413+
)
414+
415+
account = Account(client)
416+
417+
result = account.create_anonymous_session()
418+
```
406419
{% /multicode %}
407420

408421
# Forwarding user agent {% #forwarding-user-agent %}

0 commit comments

Comments
 (0)