Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reggi/shopify-promise-2

:moneybag::pray: Yet another Shopify API wrapper :/
https://github.com/reggi/shopify-promise-2

Last synced: about 1 month ago
JSON representation

:moneybag::pray: Yet another Shopify API wrapper :/

Awesome Lists containing this project

README

        

# Shopify Promise 2

A smooth Shopify API wrapper using `axios` / promises and features rate-limiting.

## Install

```bash
npm install shopify-promise-2
```

## Usage

```js
shopify.get('shop').then(({shop}) => {
assert.equal(shop.myshopify_domain, SHOPIFY_SHOP)
})
```

## Methods

```js
shopify.get('shop') // gets object
shopify.getAll('orders') // gets all objects (even if more than 250)
shopify.getWithMetafields('product/123567') // gets object with metafields
shopify.put()
shopify.delete()
shopify.head()
shopify.post()
shopify.patch()
```