Skip to content

Commit

Permalink
Merge pull request #8 from h3poteto/feature/addWebsite
Browse files Browse the repository at this point in the history
Add website when create oauth application
  • Loading branch information
vanita5 authored May 21, 2018
2 parents cc65ecc + 55debe9 commit 7290a4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mastodon.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,14 @@ class Mastodon {
static createOAuthApp(url = DEFAULT_OAUTH_APPS_ENDPOINT,
clientName = 'mastodon-node',
scopes = 'read write follow',
redirectUri = 'urn:ietf:wg:oauth:2.0:oob') {
redirectUri = 'urn:ietf:wg:oauth:2.0:oob',
webSite = null) {
return new Promise((resolve, reject) => {
Request.post({
url,
form: {
client_name: clientName,
website: webSite,
redirect_uris: redirectUri,
scopes
}
Expand Down

0 comments on commit 7290a4c

Please sign in to comment.