Skip to content

jfizz/shirtsio-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shirtsio-javascript

Access to the Shirtsio API.

Installation

Base on nodejs, require nodejs core modules and needle module

npm install needle

clone source shirtsio.js

Usage overview

var api_key = 'abc'; // secret Shirts.io API key
var shirtsio = require('shirtsio.js')(api_key);
shirtsio.products.list_categories(
    function(err, response) {
        if (err) {
            console.log(err);
            return;
        }
        console.log(response);
        console.log(response.length);
    }
);
Detail see example.js

API

All methods takes a callback as their last parameter. The callback is called with a Javascript Error (if any) and then the response.

About

Shirts.io Javascript Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published