Jump to content

 

psirus0588

Member Since 24 Mar 2016
Offline Last Active Apr 28 2016 08:14 AM
-----

Topics I've Started

Add Additional Images To Product Using Api

24 March 2016 - 10:40 AM

Hello all. I need add additional images to product using API, after reading docs wrote this code for example:

curl --user ".$conf['login'].":".$conf['APIkey']." 
     --header 'Content-Type: application/json' 
     -d '{\"image_pairs\": 
             {\"detailed\": 
                  {\"image_path\": \"http://rusevik.ru/data/news/548e885b9b0c4.jpg\"}
             },
          \"main_pair\": 
             {\"detailed\": 
                  {\"image_path\": \"http://rusevik.ru/data/news/548e885b9b0c4.jpg\"}
             }
         }' 
     -X PUT 'http://example.com/api/products/1'

Main image is added, but how add additional images? Has anyone experienced this?