0.0.1 • Published 7 years ago
mastodon-register-app v0.0.1
Might be useful if you're making several mastodon bots, or want to automate the bot installation process for people.
Command line usage
$ npm install -g mastodon-register-app
$ mastodon-register-app server.example "my app's name"
app-registration.json written
$ cat app-registration.json
{
"id": "f1e3c0e159aaade587e769c8b72325a13f176baa101f448b9d47f652dbeab2b1",
"secret": "7a8f72c089acd7f6b70393046ba8174624f25eac5eaced8da9b58adf3fa3f470",
"server": "https://server.example",
"appname": "my app's name"
}
Library usage
$ npm install --save mastodon-register-app
const register = require('mastodon-register-app')
register('https://server.example', 'My Amazing App')
.then(reg => {
// use reg.secret and reg.id
})
0.0.1
7 years ago