Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Can't get postman natural language processing nor image recognition to work

34 views
Skip to first unread message

Nancy Benovich Gilby

unread,
Oct 29, 2024, 6:03:31 PM10/29/24
to fatsecret Platform API
Hi all,
I've also emailed this to support.

I have postman setup per the instructions on github, and have been using it just fine, with Oauth 1.0 in a forked collection.  I the my setup in the folder API Reference (OAuth 1.0).

I'm trying to use the request, just how it is setup in the Fatsecret Platform Collection, it's a POST, has no params but has a body.  The Auth seems to work but I keep getting Error code 10, API was not resolved.

Here is the full request from the postman console, has anyone gotten this to work, if so, how?  I get the same thing for Image Recognition.

 
Request Headers
Content-Typeapplication/json
AuthorizationOAuth oauth_consumer_key="XXXXXXXXXXXXXXX",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1730223777",oauth_nonce="sa33TfMrBog",oauth_version="1.0",oauth_signature="B7ETEqftbQW8ag%2F8HUqvSPjS%2BIc%3D"
User-AgentPostmanRuntime/7.42.0
Accept*/*
Cache-Controlno-cache
Postman-Token681ab64e-a201-419f-8e60-e0141b55382a
Accept-Encodinggzip, deflate, br
Connectionkeep-alive
CookieAWSALB=kKdO1yHiYY6JEf2WZUCFRNC4ZCFr6cVq5SFU684cEAspKY8AE5uZsSS0TPALqQvazJJ50ehB5KjmqFUEJRcR6gxlgeXD6S87HZh4qML5HCNKrpVYdH9peI+m8uHQ; AWSALBCORS=kKdO1yHiYY6JEf2WZUCFRNC4ZCFr6cVq5SFU684cEAspKY8AE5uZsSS0TPALqQvazJJ50ehB5KjmqFUEJRcR6gxlgeXD6S87HZh4qML5HCNKrpVYdH9peI+m8uHQ
Request Body
{ "user_input": "A toast with ham and cheese, an apple, a banana and a cappuccino", "region": "US", "language": "en", "include_food_data": true, "eaten_foods": [ { "food_id": 3092, "food_name": "egg", "brand": null, "serving_description": "", "serving_size": 1 } ] }
Response Headers
Serverawselb/2.0
DateTue, 29 Oct 2024 17:43:01 GMT
Content-Typeapplication/json; charset=utf-8
Content-Length56
Connectionkeep-alive
Response Body
{"error":{"code":"10","message":"API was not resolved"}}
Show raw log

seba...@fatsecret.com

unread,
Oct 29, 2024, 6:04:54 PM10/29/24
to fatsecret Platform API
Thanks for reaching out.
The 2 new AI powered API features (Image Recognition and Natural Language Processing) are available as optional add-ons with additional pricing and are not part of the Premier Free tier.
We will be in touch via email shortly with additional information.
Kind regards,
The FatSecret Platform API team

Reply all
Reply to author
Forward
0 new messages