Skip to content

Commit aea8b5a

Browse files
committed
Added usage example.
1 parent 33e92f1 commit aea8b5a

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
# autodesk-forge-sdk
22

3-
Unofficial [Autodesk Forge](https://forge.autodesk.com) SDK for Python 3.6 and above.
3+
Unofficial [Autodesk Forge](https://forge.autodesk.com) SDK for Python 3.* and above.
4+
5+
## Usage
6+
7+
```bash
8+
pip3 install autodesk-forge-sdk
9+
```
10+
11+
```python
12+
import os
13+
from autodesk_forge_sdk import AuthenticationClient
14+
15+
FORGE_CLIENT_ID = os.environ["FORGE_CLIENT_ID"]
16+
FORGE_CLIENT_SECRET = os.environ["FORGE_CLIENT_SECRET"]
17+
18+
client = AuthenticationClient()
19+
auth = client.authenticate(FORGE_CLIENT_ID, FORGE_CLIENT_SECRET, ["viewables:read"])
20+
print(auth["access_token"])
21+
```

0 commit comments

Comments
 (0)