I am trying to use API in Julia. I have a few questions,
- Which is the best package to use for API with machine learning capabilities?
- What is the correct syntax for POST based operations, is there any good docs which the community can recommend for better understanding?
I have tried to write a small code to access the free API from rapidapi in Julia, however, I fail to manage it to work.
using HTTP
url = "https://community-open-weather-map.p.rapidapi.com"
api_key = "123456789"
function get_data()
resp = HTTP.get(
url;
query = [
"X-Rapidapi-Key" => "$api_key",
"get" => "weather", "tempmax", "visibility", "wind", "timezone"
]
)
end
get_data()
Please suggest solutions to build a more stable API code. Also, please do recommend any detailed tutorial to get a better understanding of this topic.
Thanks in advance.