0.16.4-rc.18 • Published 2 years ago
ujournal-js-client v0.16.4-rc.18
ujournal-js-client
A javascript / typescript http and websocket client and type system for Lemmy.
Installation
npm install ujournal-js-client
Usage
Websocket Client
import { Login, LemmyWebsocket } from 'ujournal-js-client';
let client: LemmyWebsocket = new LemmyWebsocket();
let form: Login {
username_or_email: "my_email@email.tld",
password: "my_pass",
};
this.ws.send(client.login(form));
HTTP Client
import { LemmyHttp } from 'ujournal-js-client';
let baseUrl = 'https://lemmy.ml';
let client: LemmyHttp = new LemmyHttp(baseUrl, headers?);
let jwt = await client.httpLogin(loginForm).jwt;
0.16.4-rc.18
2 years ago
0.16.4-rc.17
2 years ago
0.16.4-rc.16
2 years ago
0.16.4-rc.15
2 years ago
0.16.4-rc.14
2 years ago
0.16.4-rc.13
2 years ago
0.16.4-rc.12
2 years ago
0.16.4-rc.11
2 years ago
0.16.4-rc.10
2 years ago
0.16.4-rc.9
2 years ago
0.16.4-rc.8
2 years ago
0.16.4-rc.6
2 years ago
0.16.4-rc.5
2 years ago
0.16.4-rc.4
2 years ago
0.16.4-rc.3
2 years ago
0.16.4-rc.2
2 years ago