Skip to content

ColorMeShop API client written in JavaScript for browser and node.js

Notifications You must be signed in to change notification settings

tsuchikazu/colorme-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colome-js

ColorMeShop API client written in JavaScript for browser and node.js

Install

$ npm install colorme

Usage

var Colorme = require('colorme');

var colorme = new Colorme({token: 'colorme-api-token'});
colorme.products.get().then(function(data) {
  console.log(data.products);
  console.log(data.meta);
});
colorme.products.get({id: 1}).then(function(data) {
  console.log(data.product);
});
colorme.products.put({id: 1, product:{name: "UpdatedName"}}).then(function(data) {
  console.log(data.product);
});

See Colorme Unit Test for other apis.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

ColorMeShop API client written in JavaScript for browser and node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published