Skip to content

Commit d6586c3

Browse files
committed
docs: include basic auth in README
1 parent 29dd0df commit d6586c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ The source code below demonstrates the CRUD operations for Thing objects. Operat
1919
import frost_sta_client as fsc
2020

2121
url = "exampleserver.com/FROST-Server/v1.1"
22-
service = fsc.SensorThingsService(url)
22+
auth_handler = fsc.AuthHandler(username="admin", password="admin") # if server is configured for basic auth, else None
23+
service = fsc.SensorThingsService(url, auth_handler=auth_handler)
2324
```
2425
#### Creating Entities
2526
```python

0 commit comments

Comments
 (0)