I have been working over the weekend to create a Julia wrapper around Zomato.com’s API
The package can be found here on Github. It will soon be available as part of Julia Registry, however, the PR is yet to merged there.
Also, I am awaiting feedback about how to design better API’s with Julia. in the present form, the code feels less Julia( should I call Juliatic wrf pythonic for python?).
Any feedbacks/issues/PRs and Github are welcome
Some examples of the package usage are given below:
# authenticate using the API key
julia> auth = Zomato.authenticate("API-KEY")
Zomato(https://developers.zomato.com/api/v2.1/)
# get the categories
julia> Zomato.get(auth, CategoriesAPI)
[ Info: fetching categories...
Dict{String,Any} with 1 entry:
"categories" => Any[Dict{String,Any}("categories"=>Dict{String,Any}("name"=>"Delivery","id"=>1)), Dict{String,Any}("categories"=>Dict{String,Any}("name"=>…
# get city wise details
julia> Zomato.get(auth, CitiesAPI, q="london")
[ Info: fetching city details...
Dict{String,Any} with 4 entries:
"location_suggestions" => Any[Dict{String,Any}("is_state"=>0,"state_name"=>"England and Wales","name"=>"London","id"=>61,"state_code"=>"England and Wales"…
"has_total" => 0
"status" => "success"
"has_more" => 0