waxcreator
A little tool that helps using the WAX-Creator Api
Last updated 10 months ago by twocrime .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install waxcreator 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (10 months ago)

2 Versions

  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |