barratt / opskins

A NodeJS library to automate OPSkins
https://www.npmjs.com/package/opskins
5 stars 1 forks source link

opskins

A node module to help automate opskins.com

Example

var opClient = new OPSkins(APIKEY) // API Key see https://opskins.com/?loc=store_account

opClient.on('ready', function() {
    console.log("OPSkins API key works");
});

opClient.on('apikeyError', function(err) {
    console.log("An error occured using API key " + err);
})

Methods

Constructor([apikey])

sellItem(assetId, amount, [feature], [callback])

Events

ready

Emitted when the API key works.

apikeyError

Emitted when the API key returns a success not equal to 200 or when the response code doesn't give 200. AKA API Key doesn't work. I've never exceeded my API limit so I don't know if it returns rate limit errors.

Todo:

This isn't going to be a very maintained project unless it gains popularity, this was solely created for me to sell items on OPSkins without having to repeat lots of code.