I'm trying to get data using CURL but I'm getting error "function is not implemented through authorised server".
When I contact with API support it says function is correct. Can anyone help me?
Note: XYZ is a shipstation company API for Shipping and i am trying to get orders status from there.
$header = array();
//$header[] = 'POST //xyz[dot]com/AuthServer/api/Token HTTP/1.1';
$header[] = 'Host: xyz[dot]com';
$header[] = 'Connection: keep-alive';
$header[] = 'Content-Type: application/hal+json; charset=utf-8';
$header[] = 'Accept: application/hal+json';
$header[] = 'Authorization: Bearer '.$get_token['msg']->access_token;
$header[] = 'Accept-Encoding: gzip,deflate,sdch';
$header[] = 'Accept-Language: en-US,en;q=0.8';
$header[] = 'Content-length: '.strlen($order_data_str);
$ch = curl_init('http://xyz[dot]com/orders');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $order_data_str);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$temp_status['status'] = 0;
$temp_status['xyz_order_id'] = '';
try{
$result1 = curl_exec($ch);
$result = json_decode($result1);