<?php
$post_data = array();
$post_data['products'] = array();
$post_data['products'][] = array(
'sku' => 'XXX',
'quantity' => 100
);
$post_data['products'][] = array(
'sku' => 'YYY',
'quantity' => 100
);
$curl = curl_init();
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLINFO_HEADER_OUT, true);
curl_setopt($curl, CURLOPT_USERAGENT, 'Equotix API');
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_FORBID_REUSE, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($curl, CURLOPT_URL,
'https://www.qoolmart.com/index.php?route=qoolmart/product/update&auth=c0c71f8bba39eb
5405405fa2fbada445');
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
________________________________________________________________________________________
Attachment File : 