I have tried to call authentication API by using escrow REST full API. However I am not getting any valid response from the authentication API.
I have used Codeigniter CURL method to post the variables with the URL https://stgsecureapi.escrow.com/api/Transaction however it still not working for me.
i am getting the following response : Authentication denied
Please help me if any one have the idea to resolve out this.
Code I am using :
//The JSON data.
$url = 'https://stgsecureapi.escrow.com/api/Transaction';
$jsonData = array(
'username' => '*****@gmail.com',
'password' => '****',
'pid' => '***'
);
//Encode the array into JSON.
$jsonDataEncoded = json_encode($jsonData);
print_r($jsonDataEncoded);
// Start session (also wipes existing/previous sessions)
$this->curl->create($url);
// Option
$this->curl->option(CURLOPT_HTTPHEADER, array('Content-type: application/json; Charset=UTF-8'));
// Post - If you do not use post, it will just run a GET request
$this->curl->post($jsonDataEncoded);
// Execute - returns responce
$this->data['curlreturn'] = $this->curl->execute();
//exit;
$this->load->view('pay/pay', $this->data);