<?php
$url="
https://api.dclink.com.ua/api/[The method you need]"; //example:
https://api.dclink.com.ua/api/GetPrice$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array (
'login' => 'YOUR_LOGIN',
'password' => 'YOUR_PASSWORD',
'additional parameter' => 'value_additional parameter'
)); //request parameters
curl_setopt($ch, CURLOPT_URL, $url);
$output = curl_exec($ch); //answer
curl_close($ch);
?>
Extra options:
'lang' - The parameter allows you to choose in which language the response will be sent. Default value is 'UA'
'showprice' => '1' - Show available price columns
'altname' => '1' - Full product name