Ananiya
04/29/2020, 9:37 AMval client = OkHttpClient()
val request = Request.Builder()
.url("<https://covid-193.p.rapidapi.com/countries>").get()
.addHeader("x-rapidapi-host", "<http://covid-193.p.rapidapi.com|covid-193.p.rapidapi.com>")
.addHeader("x-rapidapi-key", "e9a2bc7b8amshcb0d6ea32047c46p129305jsnf42297251e7d")
.build()
val response = client.newCall(request).execute()
then i run this code and give me this Response{protocol=http/1.1, code=200, message=OK, url=<https://covid-193.p.rapidapi.com/countries>}
but all i want was to show me the countries and affected person number i download retrofit and gson but it look little bit harder how do i use itcrummy
04/29/2020, 9:42 AMAnaniya
04/29/2020, 1:35 PMZach Klippenstein (he/him) [MOD]
04/29/2020, 3:39 PM