How to sendfrom
Follow these steps to connect X post (tweet), send from Python, and track delivery.
1
Connect your platform
Connect your X account to yeetpost:
- Go to app.yeetpost.com
- Click Add connection and select X (Twitter)
- Authenticate with your X account
Paste your connection slug here and we'll auto-fill it into the code examples below.
2
Get your API key
Get your API key from the yeetpost dashboard:
- Go to app.yeetpost.com/settings
- Copy your API key
Paste your API key here and we'll auto-fill it into the code examples below.
3
Send your post
Install the requests library:
pip install requestsSend a post:
import requests
response = requests.post(
"https://api.yeetpost.com/v1/post/<your-connection-slug>",
headers={"x-api-key": "<your-api-key>"},
data="Hello from yeetpost!",
)
print(response.json())4
Track your posts
Monitor all your posts from the yeetpost dashboard:
- Go to the Feed tab in the yeetpost dashboard
- View all posts sent via yeetpost, including status and timestamps
5
Review the security checklist
Review the Security Checklist to ensure your implementation is secure.
Related guides
Related resources
Copy this guide (with your values) for use with LLMs or sharing with colleagues.