Zomato API integration with python
$ pip install zomatoWrapper
or
$ python setup.py install
Register for an API key:
All you need to do is register in order to get your API key, a mandatory parameter for most of our API calls. It’s your personal identifier and should be kept secret.
With your key in hand, it's time to authenticate, so run:
>>> from zomatoWrapper import Zomato
>>> zomato = Zomato('<apikey>')
This api provides you the list of categories.
Parameters:
Returns: categories ''dict''
- categoryId - ID of the category type.
- categoryName - Name of the category type.
>>> zomato.getCategories()
This api provides you name.
Parameters: cityName : ''str''
- cityName - Name of city i.e. Los Angles.
Returns: cityId ''int''
- cityId - unique id for city.
>>> zomato.getCityID(123)