consume external API
would like to create a scheduling application for tennis court. I have found an API (https://www.weatherapi.com/) and I have successfully implemented a method to consume the data and insert it into a JSONObject (org.json dependency). I would like to continue further and get stuff as weather km/h, temperature and so on. Do I have to create new classes for every element of the json I am getting or is there a more efficient way to read the data. I will further use that data to create a schedule that follows certain rules.
the json looks like this: https://pastebin.com/APRb5953
Free Weather API - WeatherAPI.com
WeatherAPI.com free weather API and weather data and Geolocation API (JSON and XML) for hourly, daily and 15 min interval weather, historical data, bulk request, astronomy, sports and much more.
Pastebin
{ "location": { "name": "London", "region": "City ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
⌛
This post has been reserved for your question.
Hey @the goat! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.