mastodon
Version, currently master branch1 version
- master branchlatestDec 27, 2017
github.com/KillianKemps/mastodon.cr
A Crystal-lang library for Mastodon API
4 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
mastodon:
github: KillianKemps/mastodon.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.22.0- License
- MIT
- Author
- Decors
Dependencies
Development Dependencies
README
mastodon
A Crystal-lang library for Mastodon API
Installation
Add this to your application's shard.yml:
dependencies:
mastodon:
github: decors/mastodon.cr
Usage
require "mastodon"
Regist application & Authenticate
client = Mastodon::REST::Client.new(url: "example.com")
app = client.apps("My Mastodon App", scopes: "read write follow")
token = client.get_access_token_using_username_password(
client_id: app.client_id,
client_secret: app.client_secret,
scopes: "read write follow",
username: "USERNAME",
password: "PASSWORD"
)
client.authenticate(token)
Client
client = Mastodon::REST::Client.new(url: "example.com", access_token: "ACCESS_TOKEN")
Todo
- OAuth : scope handling
Contributing
- Fork it ( https://github.com/decors/mastodon.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Decors - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Dec 27, 2017
- Crystal
0.22.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/KillianKemps/mastodon.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1