FoundKey microblogging server.
Find a file
2021-05-16 18:27:21 +09:00
src ✌️ 2021-05-16 18:18:45 +09:00
test add streaming test 2021-05-16 18:12:18 +09:00
test-d やった 2021-05-16 18:27:21 +09:00
.editorconfig tab 2021-05-16 18:22:19 +09:00
.gitignore Add ignore config 2021-05-15 01:53:41 +09:00
i-want-you.png i want you 2021-05-14 12:00:10 +09:00
jest.config.ts wip 2021-05-14 13:49:40 +09:00
LICENSE Initial commit 2021-05-11 14:14:30 +09:00
package-lock.json Update package-lock.json 2021-05-16 18:12:12 +09:00
package.json tab 2021-05-16 18:22:19 +09:00
README.md やった 2021-05-16 18:27:21 +09:00
tsconfig.json tab 2021-05-16 18:22:19 +09:00

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