@monkey-radio/api-client
v1.0.13
Published
![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white) ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E)
Downloads
22
Readme
MonkeyRadio API Client
A Fully featured Typescript SDK to interact with MonkeyRadio APIs
INSTALLATION
npm i @monkey-radio/api-client
USAGE
import { MonkeyRadioAPI } from "@monkey-radio/api-client";
const monkeyRadioAPI = new MonkeyRadioAPI({
baseUrl: useRuntimeConfig().public.apiUrl,
diffusionUrl: useRuntimeConfig().public.diffusionUrl,
});
Then let your favourite ide autocomplete through repositories and endpoints thank to the typescript magic !
Repositories
- Auth
- login
- logout
- me
- renewToken (internal)
- Radios (CRUD)
- fromDomain
- Diffusion Repositories
- Listeners
- list
- Stats
- listeners
- Listeners
Authentication
Token is by default, automatically checked and renewed if needed before each call
You simply have to login by using the auth.login method (nickname, password) or (token)