0.0.6 • Published 8 years ago

preamble-ajax v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Preamble Ajax

You need to bring your own Promise polyfill.

Usage

getProduct(handle)

Arguments

  1. handle (String): The handle of the product

Returns

(Object): JSON representation of the product

Example

import { getProduct } from 'preamble-ajax';

getProduct('black-t-shirt');
// → { id: 1, handle: 'black-t-shirt', ... }

addCart(options)

Arguments

  1. options (Object)

Returns

(Object): JSON representation of the product added

Example

import { addCart } from 'preamble-ajax';

addCart({
  id: 1234567,
  quantity: 1,
  properties: {
    'Foo': 'Bar'
  }
});
0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago