problem in creating product images is always empty

Highlighted
New Member
3 0 0

hi 

I am new to shopify app development i have an issue. I am creating product using admin api here is the code

 

$modify_data = array(
"product" => array(
"title" => "customized Lighter",
"body_html"=> "<strong>customized Lighter!</strong>",
"vendor"=> "Lighter",
"product_type"=> "Snowboard",
"tags"=> "Barnes & Noble, John's Fav, \"Big Air\"",
"images" => array(
array(
"attachment" => "R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\n"
)
)
)
);

 

shopify_call($token, $shop, "/admin/api/2019-10/products.json", $product, 'POST');

 

put image array is always empty. 

 

can any one help

0 Likes