Collection of Mastodon scripts
WIP: few initial scripts
curl -H "Authorization: Bearer ${MASTO_TOKEN}" \
-sS $MASTO_NODE/api/v1//timelines/public?limit=1 \
| jq .
Account ID and fully qualified usernames
curl -H "Authorization: Bearer ${MASTO_TOKEN}" \
-sS $MASTO_NODE/api/v1/timelines/home \
| jq '.[].account | {"id": .id, "account": .acct}'
curl -X POST \
-H "Accept: application/json" \
-H "Authorization: Bearer ${MASTO_TOKEN}" \
-F "status"="toot with curl" \
$MASTO_NODE/api/v1/statuses/ \
| jq .