{"repo":"mattn/go-mastodon","free":true,"listed":false,"github":"https://github.com/mattn/go-mastodon","clone":"git clone https://github.com/mattn/go-mastodon.git","description":"mastodon client for golang","language":"Go","stars":649,"topics":["mastodon","golang","go"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"go-mastodon Usage There are three ways to authenticate users. Fully working examples can be found in the examples directory. User Credentials This method is the simplest and allows you to use an application registered in your account to interact with the Mastodon API on your behalf. Create an application on Mastodon by navigating to: Preferences Development New Application Select the necessary scopes Working example: examples/user-credentials/main.go Public Application Public applications use application tokens and have limited access to the API, allowing access only to public data. Learn more at: Mastodon docs Working example: examples/public-application/main.go Application with Client Credentials (OAuth) This option allows you to create an application that can interact with the Mastodon API on behalf of a user. It registers the application and requests user authorization to obtain an access token. Learn more at: Mastodon docs Working example: examples/user-oauth-authorization/main.go Status of implementations [x] GET /api/v1/accounts/:id [x] GET /api/v1/accounts/verify credentials [x] PATCH /api/v1/accounts/update credentials [x] GET /api/v1/accounts/:id/followers [x] GET /api/v1/accounts/:id/following [x] GET /api/v1/accounts/:id/statuses [x] POST /api/v1/accounts/:id/follow [x] POST /api/v1/accounts/:id/unfollow [x] GET /api/v1/accounts/:id/block [x] GET /api/v1/accounts/:id/unblock [x] GET /api/v1/accounts/:id/mute [x] GET /api/v1/accounts/:id/unmute [x] GET /api/v1/acco","default_branch":null,"files":null,"tree":[],"storefront":"/r/mattn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mattn/go-mastodon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}