Mar 22, 2020 Replies: 6 API for live information about COVID-19 ##source## B4X: Copy Sub covid Dim cov1 As HttpJob cov1.Initialize("GetAddress", Me) cov1.Download("https://coronavirus-19-api.herokuapp.com/all/") Wait For (cov1) JobDone(cov1 As HttpJob) If cov1.Success Then ProgressDialogHide Dim parser As JSONParser parser.Initialize(cov1.GetString) Dim root As Map = parser.NextObject Dim recovered As Int = root.Get("recovered") Dim cases As Int = root.Get("cases") Dim deaths As Int = root.Get("deaths") End If cov1.Release End Sub Attachments cov.zip cov.zip 14.1 KB · Views: 885 Screenshot_1584876341.png 8.4 KB · Views: 1,211 Screenshot_1584876347.png 10.4 KB · Views: 1,241 Screenshot_1584895171.png 18.2 KB · Views: 1,177 Last edited: Mar 22, 2020 Click to expand...
API for live information about COVID-19 ##source## B4X: Copy Sub covid Dim cov1 As HttpJob cov1.Initialize("GetAddress", Me) cov1.Download("https://coronavirus-19-api.herokuapp.com/all/") Wait For (cov1) JobDone(cov1 As HttpJob) If cov1.Success Then ProgressDialogHide Dim parser As JSONParser parser.Initialize(cov1.GetString) Dim root As Map = parser.NextObject Dim recovered As Int = root.Get("recovered") Dim cases As Int = root.Get("cases") Dim deaths As Int = root.Get("deaths") End If cov1.Release End Sub
LucaMs Expert Licensed User Longtime User Mar 22, 2020 #2 Hopefully all of this will become obsolete very soon.
victormedranop Well-Known Member Licensed User Longtime User Mar 23, 2020 #4 Use this API it's more infor there. Coronavirus monitor API Documentation (astsiatsko) | RapidAPI rapidapi.com
Use this API it's more infor there. Coronavirus monitor API Documentation (astsiatsko) | RapidAPI rapidapi.com
A Ahmed.STorM New Member Apr 28, 2020 #5 Excellent , But can't we use AutoCompleteEdit text in this project? , cuz i tried but, i failed .. i got all countries array from a website & modified it accoring to API
Excellent , But can't we use AutoCompleteEdit text in this project? , cuz i tried but, i failed .. i got all countries array from a website & modified it accoring to API
H hmagday Member May 1, 2020 #6 how to get the last updated date, example: Last updated: April 30, 2020, 23:58 GMT
Almora Well-Known Member Licensed User Longtime User May 1, 2020 #7 Spoiler [{"country":"World","cases":3322814,"todayCases":18594,"deaths":234408,"todayDeaths":578,"recovered":1050408,"active":2037998,"critical":50926,"casesPerOneMillion":426,"deathsPerOneMillion":30,"totalTests":0,"testsPerOneMillion":0}] the last update date api is not included. add yourself with the timer.
Spoiler [{"country":"World","cases":3322814,"todayCases":18594,"deaths":234408,"todayDeaths":578,"recovered":1050408,"active":2037998,"critical":50926,"casesPerOneMillion":426,"deathsPerOneMillion":30,"totalTests":0,"testsPerOneMillion":0}] the last update date api is not included. add yourself with the timer.