Вот URL-адрес, который я пытаюсь запросить : https://apkpure.com/search?q=free+fire
А это фрагмент кода, в котором я настраиваю Retrofit и совершаю вызов:
Код: Выделить всё
interface ApiService {
@GET("search?q=free+fire&t=")
suspend fun searchResults(): Response
}
val retrofit = Retrofit.Builder()
.baseUrl("https://apkpure.com/")
.addConverterFactory(ScalarsConverterFactory.create())
.build()
.create(ApiService::class.java)
Код: Выделить всё
Response Error: 403, Error Body: Just a moment...
Подробнее здесь: [url]https://stackoverflow.com/questions/78443210/403-error-when-making-http-request-with-retrofit-in-kotlin[/url]