Mindbrain API client
Client for the Mindbrain HTTP API
Documentation: https://api.mindbrainmusic.com
Installation
yarn add mindbrain
Usage
Import the Mindbrain
client from the mindbrain
package, load in your
artist name configuration, and you can start using the get()
method
right away:
const mindbrain = config mindbrain
This will make an HTTP GET
request to
https://api.mindbrainmusic.com/artists/your-artist-name/releases.json,
which retrieves all of the releases for a given artist. The get()
method
performs an HTTP GET
request on the given resource passed in, and returns
a Promise
object that you can either tack on additional methods to, or use
the async
/ await
syntax like so:
Component thismindbrain = name: 'wonderbars' async { let releases = await thismindbrain this } // ...