Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mchmarny/masto-lab
Collection of Mastodon scripts
https://github.com/mchmarny/masto-lab
mastodon
Last synced: about 2 months ago
JSON representation
Collection of Mastodon scripts
- Host: GitHub
- URL: https://github.com/mchmarny/masto-lab
- Owner: mchmarny
- License: apache-2.0
- Created: 2022-11-30T00:51:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T01:09:26.000Z (about 2 years ago)
- Last Synced: 2024-04-13T12:53:27.517Z (8 months ago)
- Topics: mastodon
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# masto-lab
Collection of Mastodon scripts
> WIP: few initial scripts
## Who is on my timeline
```shell
curl -H "Authorization: Bearer ${MASTO_TOKEN}" \
-sS $MASTO_NODE/api/v1//timelines/public?limit=1 \
| jq .
```Account ID and fully qualified usernames
```shell
curl -H "Authorization: Bearer ${MASTO_TOKEN}" \
-sS $MASTO_NODE/api/v1/timelines/home \
| jq '.[].account | {"id": .id, "account": .acct}'
```## Post new status
```shell
curl -X POST \
-H "Accept: application/json" \
-H "Authorization: Bearer ${MASTO_TOKEN}" \
-F "status"="toot with curl" \
$MASTO_NODE/api/v1/statuses/ \
| jq .
```