user30
1
Hi,
I am new for Shopify.
I am trying to upload images to shopify use PHP Curl by REST Admin API with calling to this
products/{$product_id}/images.json
Using this calling, the uploaded images are for designated to a product.
But I just want to upload the images and put the images to this product’s description and the images should not be shown in main images.
How can I do it with PHP Curl?
I tried products/images.json
It did not work.
If somebody know it, please advise me.
Thank you.
Luke
2
You should look at moving over to GraphQL as REST is no longer support by Shopify.
Dylan
3
Yes you can use any language / library that will perform an HTTP request to make authenticated calls to the Shopify Admin API.
There’s even an official PHP library maintained by Shopify: GitHub - Shopify/shopify-api-php
But I understand you’re asking about cURL specifically. Can you share more details about your request and the response you’re getting from the API?
What’s the status code? Any errors in the body?