GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - apapirovski/schema-node-client: Schema API Client for NodeJS

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

97 Commits
97 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

Schema API Client for NodeJS Build Status

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

Install

npm install schema-client

Connect

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

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

Usage

client.get('/products', { active: true }).then(products => {
  console.log(products);
}).catch(err => {
  // handle error
});

Caching

As of v3, this client provides in-memory caching enabled by default. It uses a version clocking protocol that means you never have to worry about stale cache, and collections that don't change frequently, such as products, will always return from cache when possible.

To disable caching behavior, initialize the client with cache: false.

new Schema.Client('<client-id>', '<client-key>', {
  cache: false,
});

Documentation

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

Contributing

Pull requests are welcome

License

MIT

About

Schema API Client for NodeJS

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.