Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 658 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 658 Bytes

Project logo

api-client

A Meower API Client written in Typescript.

installation

get the package from your favorite source of packages:

  • @meower/api-client on jsr
  • esm.sh/jsr/@meower/api-client in browsers

example

see the docs for more

import { socket } from '@meower/api-client';

const events = await socket.login({
	api_url: 'https://api.meower.org',
	api_token: 'your.token.here',
	socket_url: 'wss://server.meower.org',
});

events.on('auth', ({ username }) => {
	console.log(`logged in as ${username}`);
});