With this module you can easily access the WAXCreator Api and perfom simple requests.
npm i waxcreator
let WaxCreator = require('waxcreator')
let WC = new WaxCreator({
apitoken: 'Your WAX Creator Api Token',
})
WC.read((err, body) => {
// ...
})
You can either address the methods as object properties like this:
WC.read((err, body) => {
// ...
})
or address the path like this:
WC.request('read', (err, body) => {
// ...
})
WC.create({
internal_app_id: (Int)[Required],
name: (String)[Required],
market_name: (String)[Required],
image_generic: (String)[Required],
amount: (Int)[Required],
color: (String)[Required],
rarity_name: (String),
collection_name: (String),
external_id: (String),
instant_sell_enabled: (Boolean),
instant_sell_value: (Int),
json_attributes: (Json),
}, (err, body) => {
// ...
})
WC.refill({
submission_id: (Int)[Required],
number_of_items_to_refill: (Int)[Required],
}, (err, body) => {
// ...
})
WC.read({
submission_id: (Int)
}, (err, body) => {
// ...
})
WC.search({
q: (String)
}, (err, body) => {
// ...
})