Hi,
I am using this URL (‘api/resource/Item’) to get all items list through REST API.
I’ve already done simple authentication by using the rest api. Written in PHP. Please see the details how I’ve done this.
$service_url = ‘http://example.com/api/method/login’;
$curl = curl_init($service_url);
$curl_post_data = array(‘usr’ => $_user,‘pwd’ => $_password);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $curl_post_data);
$curl_response = curl_exec($curl);
This code works fine for me to authentication. But not working for get item list.
Please help me out. Thanks.