mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-12 12:40:54 +01:00
🌎 An interplanetary microblogging platform 🚀
https://misskey-hub.net
src | ||
test | ||
test-d | ||
.editorconfig | ||
.gitignore | ||
i-want-you.png | ||
jest.config.ts | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
misskey.js
Install
coming soon
Usage
API request
都度インスタンスやトークンを指定する場合
import * as Misskey from 'misskey-js';
const meta = await Misskey.api.request('https://misskey.test', 'meta', { detail: true }, 'TOKEN');
最初にインスタンスやトークンを指定し、以後のリクエストでその情報を使いまわす場合
import * as Misskey from 'misskey-js';
const cli = new Misskey.api.APIClient({
origin: 'https://misskey.test'
});
cli.i = { token: 'TOKEN' };
const meta = await cli.request('meta', { detail: true });
Streaming
todo