UNPKG

mastodon-api

Version:

Mastodon API library with streaming support

8 lines (5 loc) 158 B
import Mastodon from '../lib/mastodon' const M = new Mastodon({ access_token: '...' }) M.get('timelines/home', {}).then(resp => console.log(resp.data))