Last active
April 11, 2023 13:30
-
-
Save gutocarvalho/f96f5e025e03abfe6ceb3c2d9b4f1f1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enter the name of the Mastodon instance you want to publish a toot to | |
INSTANCE="bolha.us" | |
# Enter the contents of the toot you want to publish | |
TOOT="e a noite vai virar dia..." | |
## Replace TOKEN with your Mastodon TOKEN | |
TOKEN="YOUR TOKEN" | |
echo "Publishing a toot to $INSTANCE..." | |
curl https://"${INSTANCE}"/api/v1/statuses -H "Authorization: Bearer ${TOKEN}" -F "status=${TOOT}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment