
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Shopify API wrapper
Suppoorts all APIs and all standard methods.
npm install ee-shopify
You may set up the shop instance using the API key and the secret and or the api token.
var ShopifyAPI = require('ee-shopify')
, log = require('ee-log');
// instantiate using the apikey && secret
var myShop = new ShopifyAPI({
shop : 'myShopName' // myShopName.myshopify.com
, key : 'td0fasf0987..' // the shopify API key
, secret : 'l34k5h..' // the shopify secret
});
// or instantiate using the api token
var myShop = new ShopifyAPI({
shop : 'myShopName' // myShopName.myshopify.com
, token : 'td0fasf0987..' // the shopify API token
});
When retreiving data from the API two methods find and findOne on the query builders can be used. Both methods take
a callback which receives an error object as parameter 1 and a data object as parameter 2
// loading orders of the shop
myShop.order().find(function(err, data) {
if (err) log(err);
else {
// should have recevied some data
log(data);
}
});
// load all transactions for the order 312
myShop.order(312).transaction().find(function(err, data) {
if (err) log(err);
else {
// should have recevied some data
log(data);
}
});
new myShop.order({}).save(function(err, data) {
if (err) log(err);
else {
// should have recevied some data
log(data);
}
});
You may also request data without the need to use the api wrapper, you may use the request method for that.
get(URL, [query], callback);myShop.get('/orders.json', function(err, data) {
if (err) log(err);
else log(data); // data without envelope
});
post(URL, [data], callback);myShop.post('/orders/{id}.json', {key: value}, function(err, data) {
if (err) log(err);
else log(data); // data without envelope
});
put(URL, [data], callback);myShop.put('/orders/{id}.json', function(err, data) {
if (err) log(err);
else log(data); // data without envelope
});
delete(URL, [data], callback);myShop.delete('/orders/{id}.json', function(err, data) {
if (err) log(err);
else log(data); // data without envelope
});
FAQs
shopify api wrapper
We found that ee-shopify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.