Mixjar
API Wrappers for various music based platforms.
Features
The following platforms are currently available.
Installation
- Using npm
$ npm i --save mixjar
- Using yarn
$ yarn add mixjar
Usage
const Mixjar = require('mixjar');
// or
// const { Hearthisat, Mixcloud } = require('mixjar');
// mixcloud with optional access_token for authenticated users
const mixcloud = new Mixjar.Mixcloud('access_token');
const hearthisat = new Mixjar.Hearthisat();
For all functions, there are two methods to obtain your result. For instance
- Callbacks
mixcloud.user('ndungujan23').asCallback((err, result) => {})
- Promise
mixcloud.user('ndungujan23').asPromise().then(() => {})
API
Refer to the Docs for available sources / platforms
Note: A good number of the API methods have been implemented. More will be added over time as well as more sources. All PRs are welcome 🙂, for any and new methods
Other Projects
You can find the kotlin wrapper for the same in Mixjar Kotlin Repo
Caveat
This is not yet complete and is not an official MixCloud/Hearthisat wrapper. send your thoughts and suggestions to ndungujan23@gmail.com