Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 :/
- Host: GitHub
- URL: https://github.com/reggi/shopify-promise-2
- Owner: reggi
- Created: 2016-03-17T01:57:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-02T15:19:11.000Z (over 8 years ago)
- Last Synced: 2024-10-14T17:31:43.834Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()
```