I want to create a product in a bigcommerce store using bigcommerce Api. The following code works great for creating a product in the Bc store
$product = array('name' => 'ABC Blocks', 'type' => 'physical', 'price' => '19.99', 'weight' => 2.3, 'categories' => array(26), 'availability' => 'available', 'is_visible' => true));
Bigcommerce_Api::createProduct($product);
How can I pass the url of the images? I am trying to execute the following codes but cannot create
$image = array('image_file'=>'https://developer.bigcommerce.com/assets/hero-image.png','is_thumbnail'=>false,'sort_order'=>1,'description'=>'');
$ product = array ('name' => 'ABC Blocks',' type '=>' physical ',' price '=> '19 .99', 'weight' => 2.3, 'categories' => array (26), 'availability' => 'available', 'is_visible' => true, 'images' => array ('image_file' => $ image));
Bigcommerce_Api :: createProduct ($ product);
Any help would be greatly appreciated !! thanks