Shopify-api-node | Node Shopify connector sponsored by MONEI | Ecommerce library
kandi X-RAY | Shopify-api-node Summary
kandi X-RAY | Shopify-api-node Summary
Shopify API bindings for Node.js.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates instance of Shopify .
- register all resources
- reducer for other links
- Wrapper class
- Creates a new paymentAdjuster .
- Initialize an article
- External asset .
- Fulfanced event
- Creates a new Orderer
- Creates a discount code
Shopify-api-node Key Features
Shopify-api-node Examples and Code Snippets
Community Discussions
Trending Discussions on Shopify-api-node
QUESTION
I am trying to upload local images to a Shopify product via node.js and shopify-api-node.
This is the part of the code, where I am uploading the images.
...ANSWER
Answered 2022-Feb-01 at 20:44You are trying to upload an image from a local relative path which is wrong at the moment.
But I'm not sure if the API handles local images with the proper path and even if you use absolute path.
The best approach will be to read the image with Node.js and convert it to Base64
and pass it that way. You can refer to the docs here: https://shopify.dev/api/admin-rest/2021-07/resources/product-image#[post]/admin/api/2021-07/products/{product_id}/images.json
In addition please note that async/await
doesn't work in a forEach
function. So at the moment you are stacking all the uploads at the same time and the API will not be happy.
PS: Give my regards to Zoro/Marto & Evgeni. ;)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Shopify-api-node
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page