Rework the Registration and App APIs

This puts `register` back to the way it was, and changes the "new"
`register` to `build`.
This commit is contained in:
Paul Woolcock
2018-08-27 19:28:33 -04:00
parent 39e5aacfb5
commit 0df3f9fa2b
5 changed files with 74 additions and 10 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ pub fn register() -> Result<Mastodon, Box<Error>> {
.client_name("elefren-examples")
.scopes(Scopes::All)
.website("https://github.com/pwoolcoc/elefren")
.register()?;
.build()?;
let url = registration.authorize_url()?;
println!("Click this link to authorize on Mastodon: {}", url);