Skip to content

Stacker8/node-waxcreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published