@monkey-radio/api-client
v1.1.1
Published
 
Downloads
122
Readme
MonkeyRadio API Client
A Fully featured Typescript SDK to interact with MonkeyRadio APIs
INSTALLATION
npm i @monkey-radio/api-clientUSAGE
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)
