summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2018-08-29 16:23:50 -0400
committerPaul Woolcock <paul@woolcock.us>2018-08-30 19:12:16 -0400
commite284894d40e206adf8089482e340d7a9d0046d79 (patch)
tree9aa48dceb987d100dd1cb6d7f0130e3514865c28 /examples
parentaf806b7856c974935046e18b627c6dd3e999b9fa (diff)
feat(scopes): Implement granular OAuth scopes
BREAKING CHANGE: Applications that use the `Scopes` data structure will have minor changes to make Closes #44
Diffstat (limited to 'examples')
-rw-r--r--examples/register.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/register.rs b/examples/register.rs
index f375921..7b581ee 100644
--- a/examples/register.rs
+++ b/examples/register.rs
@@ -31,7 +31,7 @@ pub fn register() -> Result<Mastodon, Box<Error>> {
let website = read_line("Please enter your mastodon instance url:")?;
let registration = Registration::new(website.trim())
.client_name("elefren-examples")
- .scopes(Scopes::All)
+ .scopes(Scopes::all())
.website("https://github.com/pwoolcoc/elefren")
.build()?;
let url = registration.authorize_url()?;