W
W
websteam2019-03-20 12:49:58
API
websteam, 2019-03-20 12:49:58

How to get all product images from "My Warehouse"?

How can I get all product images from My Warehouse?
The product has an image attribute, but only 1 main image is returned to everyone
https://online.moysklad.ru/api/remap/1.1/doc/index...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Miller, 2022-03-28
@blackseabreathe

For those who are from 2K22
API 1.2
For example, via cURL:
get the desired product, the images of which you need to get,
find the images array for the product,
it contains a link to the images,
follow the link with cURL and parse the array with direct links to images,
download cURL each image, saving them somewhere or integrating them somewhere

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question