Someone add product trough api with main_pair? docs can be found
here , i try but no success,
My case, i upload files to ROOT/import and try to create main_pair array like this:
'main_pair' => array(
//'detailed_id'=>0, Set automatically
//'image_id'=>0, //ID of the thumbnail 0 integer
//'pair_id'=>0, //ID of the image pair Set automatically integer
//'position'=>0, //Position of the image pair among others 0 integer
//'icon'=>0, //Thumbnail data — array (similar to detailed, see below)
//'detailed'=>0, //Full image data — array (content explained below)
'absolute_path'=> dirname(__FILE__).'\import\\'.$image_name, //Absolute filesystem path to the image — Valid filesystem path
'alt'=>'', //Alternative text (show if the image fails to load) ‘’ string
'http_image_path'=>'http://www.example.com/images/'.$image_name, //HTTP path to the image — Valid HTTP URL pointing to the image
'image_path'=>'http://www.example.com/images/'.$image_name, //Actual image path (HTTP or HTTPS; may be the same as http_image_path) — Valid URL pointing to the image
'image_x'=>700, //Image width in pixels — integer
'image_y'=>621, //Image height — integer
),
---
Valentin