Socket
Socket
Sign inDemoInstall

schema-client

Package Overview
Dependencies
1
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    schema-client

Schema API Client for NodeJS


Version published
Maintainers
1
Install size
1.17 MB
Created

Readme

Source

Schema API Client for NodeJS Build Status

Build and scale ecommerce with Schema. Create a free account at https://schema.io

Install

npm install schema-client

Connect

var Schema = require('schema-client');

var client = new Schema.Client('<client-id>', '<client-key>');

Usage

client.get('/products', {active: true}, function(err, products) {
  if (err) {
    // handle error
    return;
  }
  console.log(products);
});
With promises
client.get('/products', {active: true}).then(function(products) {
  console.log(products);
}).catch(function(err) {
  // handle error
});

Documentation

See https://schema.io/docs for more API docs and usage examples

Contributing

Pull requests are welcome

License

MIT

Keywords

FAQs

Last updated on 06 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc