I want to make an AutoCompleteTextview
with RapidApi Urban Dictionary where I would filter words by input. But I am a beginner. I've searched a lot tutorials on it. But I did not find any such that. I just get this from RapidApi
val client = OkHttpClient()
val request = Request.Builder()
.url("https://mashape-community-urban-dictionary.p.rapidapi.com/define?term=wat")
.get()
.addHeader("x-rapidapi-key", "8345a8b4d6ms...")
.addHeader("x-rapidapi-host", "mashape-community-urban-dictionary.p.rapidapi.com")
.build()
val response = client.newCall(request).execute()
and in AutoCompleteTextview
tutorial I see that we need an array but with above code I don't know how can I get an array from the response. I want a full answer on it.