roytang.net Posts Photos Archives About

Subscribe: RSS JSON

2021 November

  • Some notes on posting to Mastodon via their HTTP API using Python. The backend of this site uses similar code to enable automated syndication to my Mastodon account. Creating an access token Go to your mastodon preferences (it's the gear icon above the search bar in the web interface) and click Development. (Or go to [yourservername]/settings/applications) Click "New Application". Specify application name. Default permissions should be fine. Save. Click your application name in the grid on the Development page. Your access token will be in the top part of the screen. Posting a status (or as they call it, a

    read more (413 words)