When I tried calling food.find_id_for_barcode in postman, I am getting food_id as always zero(0). Response code is 200, so there is no authentication problem.
Response Body:
{
"food_id": {
"value": "0"
}
}
URL -
https://platform.fatsecret.com/rest/server.api?method=food.find_id_for_barcode&barcode=8906009078762&format=json
I tried many different barcodes as well.
ex. 1. Unibic Daily digestive - 8906009078762
2. Saffola oats - 8901088050562
3. Dabur Honey - 8901207025389
Parameters -
method:food.find_id_for_barcode
barcode:8906009078762
format:json
Headers -
Content-Type: application/json
Authorization:Bearer <token>
Referred link -