Straight question calling food.find_id_for_barcode in postman - Missing scope: scope 'barcode' error - Reg.

280 views
Skip to first unread message

shashi shiva

unread,
Apr 26, 2021, 5:02:53 PM4/26/21
to FatSecret Platform API
Hi,
I tried calling food.find_id_for_barcode in postman, I am getting 200 response code with following "Missing scope: scope 'barcode'" error. Can anyone help please. Note: There is no Authorization problem, it is perfect.
{
    "error": {
        "code": 14,
        "message": "Missing scope: scope 'barcode'"
    }

URL-

Parameters- I have used many other barcode numbers too.
method:food.find_id_for_barcode
barcode:0852684003071
format:json
region:IN

Headers-
Content-Type: application/json
Authorization:Bearer <token>

shashi shiva

unread,
Apr 27, 2021, 7:22:12 AM4/27/21
to FatSecret Platform API
This is resolved. When generating authentication token the parameter "scope" should be "barcode" instead of "basic". This solved my problem.
Praameter-
scope:barcode
Reply all
Reply to author
Forward
0 new messages