1.0.1 • Published 5 years ago

waxcreator v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

waxcreator

With this module you can easily access the WAXCreator Api and perfom simple requests.

Installation

npm i waxcreator

Usage

let WaxCreator = require('waxcreator')

let WC = new WaxCreator({
  apitoken: 'Your WAX Creator Api Token',
})

WC.read((err, body) => {
  // ...
})

Syntax

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) => {
  // ...
})

Requests

Create

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) => {
  // ...
})

Refill

WC.refill({
  submission_id: (Int)[Required],
  number_of_items_to_refill: (Int)[Required],
}, (err, body) => {
  // ...
})

Read

WC.read({
  submission_id: (Int)
}, (err, body) => {
  // ...
})

Search

WC.search({
  q: (String)
}, (err, body) => {
  // ...
})
1.0.1

5 years ago

1.0.0

5 years ago