Get All Items Details through REST API to Update Magento Catalog (Sync Products)

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.

Using postman to GET a list of Items, I authenticate right in the request, with a header. Using Token Authentication

curl --location --request GET ‘xxxxxx.com - xxx sex videos free hd porn Resources and Information.
–header ‘Authorization: token 1234567f0558e:xxxxxabcdef292’
–header ‘Accept: application/json’
–header ‘Cookie: io=YYztoV9cpjH2DyLaAAAC; sid=Guest; user_image=; user_id=Guest; system_user=yes; full_name=Guest’
–data-raw ‘’

Mike