trustcafe-api-wrapper/documentation.md
2026-04-02 17:55:01 +01:00

483 B

Basic usage (without an .env)

Here's how to make a post to the homepage (aka Maintrunk)

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.",
))