Paul Woolcock
16bc060407
Update to the 2018 edition
...
Only 2 years later :eyeroll:
4 years ago
Paul Woolcock
e6879ec8ea
change up examples slightly
6 years ago
Paul Woolcock
034bd4e6d1
Add a helper for completing authentication via the command line
6 years ago
Paul Woolcock
e284894d40
feat(scopes): Implement granular OAuth scopes
...
BREAKING CHANGE: Applications that use the `Scopes` data structure will
have minor changes to make
Closes #44
6 years ago
Paul Woolcock
0df3f9fa2b
Rework the `Registration` and `App` APIs
...
This puts `register` back to the way it was, and changes the "new"
`register` to `build`.
6 years ago
Paul Woolcock
1057e58343
There's no reason for Registration::complete to take an owned string
6 years ago
Paul Woolcock
a407249fa5
Remove `elefren::apps::prelude`
...
Since we don't need `App` in a prelude anymore, just move `Registration`
and `Scopes` to the main prelude and get rid of `elefren::apps::prelude`
6 years ago
Paul Woolcock
45f4cbbbfe
Move the `toml` helpers to `elefren::helpers::toml`
6 years ago
Paul Woolcock
c5788b8bd5
rustfmt pass
6 years ago
Paul Woolcock
1436c28e42
duplicate the AppBuilder api in Registration
...
Closes #13
6 years ago
Paul Woolcock
043d3753e1
rustfmt pass
6 years ago
Paul Woolcock
5017104e63
Make the examples no-ops when `toml` is not enabled
6 years ago
Paul Woolcock
3330a26760
rustfmt pass
6 years ago
Paul Woolcock
6ddea87765
Use the new toml helpers instead of the toml crate
6 years ago
Paul Woolcock
8636e690c3
rustfmt pass
6 years ago
Paul Woolcock
0f5e295ea9
Revamp registration & auth process
6 years ago
Paul Woolcock
cc083e335e
Change `Mastodon::from_data` to just `Mastodon::from`
6 years ago
Paul Woolcock
a9b6b52890
Change mammut references to elefren
6 years ago
Paul Woolcock
22b4b04738
Adds a `MastodonClient` trait
...
This is useful for user code, which can use the trait to add a layer of
indirection to their code, allowing them to swap out implementations for
testing
6 years ago
Aaron Power
70ecc26ab8
Changed Scope for examples and allowed input of custom domain.
6 years ago
Aaron Power
523d83022e
Fixed example code, and {un}follow routes.
6 years ago