Skip to content

otiai10/mammut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mammut

npm install
npm start
import mammut from "mammut";

const instance = new mammut.Instance("mstdn.jp");

instance
    .client({
        name: "Test",
        scopes: ["read", "write"],
        redirect: "http://localhost:8080",
    })
    .then(client => {
        const authenticationURL = client.authURL();
        window.open(authenticationURL);
        // Let the user authenticate your app in the instance's web page.
        // Then you can get callback access to that "redirect" url,
        // with authentication code as `?code=xxxxxxx`
    });

About

Yet Another Mastodon API Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published