Category : api

I am getting this error while running my android app 2021-01-20 10:47:07.051 17531-17604/com.example.newsfresh E/Volley: [4304] BasicNetwork.performRequest: Unexpected response code 403 for https://newsapi.org/v2/top-headlines?country=us&apiKey=#######.. My apikey is correct I have rechecked it This is my code: private fun fetchData() { val url = "https://newsapi.org/v2/top-headlines?country=in&apiKey=###….." val jsonObjectRequest = JsonObjectRequest( Request.Method.GET, url, null, { val newsJsonArray = it.getJSONArray("articles") val ..

Read more

I wish to monitor the API on an e-commerce website to track prices in order to make an app that notifies the user when the price is down. But I am not sure how to implement this. Which is the easiest way to implement this for Android? I am planning to do the monitoring(API calls ..

Read more