Android : How to get restaurant menus from Locu API

on Sunday, April 19, 2015


I have looked at several APIs for acquiring restaurant menu for a particular location and determined that Locu API works best for me.


I was trying the basic example listed on locu website:



curl -X POST https://api.locu.com/v2/venue/search/ -d '{"fields":["name","menu_items","location","categories","description"],"menu_item_queries":[{"price":{"$lt":6},"name":"burrito"}],"venue_queries":[{"location":{"locality":"San Francisco"}}],"api_key":"MY_API_KEY"}'


Where, MY_API_KEY is the API_KEY that I received when I signed up. As long as I include "menu_items" parameter, I keep getting the response:



{"status": "error", "http_status": 400, "error": "The requested \"menu_items\" field is either invalid or your account does not have permissions to access it."}


I did not come across any documentation regarding what I need to do in order to get the permissions for querying "menu_items". If anyone could point me in the right direction, I will really appreciate that.


I have already gone through some relatively old questions on here and they did not address this particular issue.


Also, there doesn't seem to be a tag for Locu api here. I am going to try and tag the question with some generic tags. Please excuse me for that.


0 comments:

Post a Comment