Skip to content

Minimal wrapper for the Discogs.com Collection API

License

Notifications You must be signed in to change notification settings

sbstjn/discogs-basics

Repository files navigation

Discogs Collection Basics

npm CircleCI license Coveralls

Minimal wrapper for the Discogs Collection API.

Install

$ > yarn install discogs-basics

Usage

First create an access token for accessing the Discogs API.

const Discogs = new API('username', 'token')

// Get details about most recent record
Discogs.Last().then(console.log)

// Get number of items in your collection
Discogs.Items().then(console.log)

// Get maximum, minimum, median collection value
Discogs.Value().then(console.log)

License

Feel free to use the code, it's released using the MIT license.

Contributors

Contribution

You are more than welcome to contribute to this project! 😘

To make sure you have a pleasant experience, please read our code of conduct. It outlines core values and believes and will make working together a happier experience.