Documentation
This commit is contained in:
parent
f4a66b3e55
commit
7bca418530
4 changed files with 33 additions and 6 deletions
18
documentation.md
Normal file
18
documentation.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Basic usage (without an .env)
|
||||
Here's how to make a post to the homepage (aka Maintrunk)
|
||||
|
||||
```python
|
||||
import trustcafeapiwrapper
|
||||
from trustcafeapiwrapper.wrappers.post.create_post import create_post
|
||||
|
||||
# Setup the API Client
|
||||
API = trustcafeapiwrapper.APIClient(
|
||||
client_id="YOUR_CLIENT_ID"
|
||||
client_secret="YOUR_CLIENT_SECRET"
|
||||
)
|
||||
|
||||
# Use the create_post wrapper
|
||||
API.wrapped(create_post(
|
||||
"This is a test post created via the create_post wrapper function.",
|
||||
))
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue