I\'m trying to call an API which requires me to pass in an API key.
My Service call using HttpURLConnection is working perfectly.
url = new URL(\"htt
As far as i can see you are passing the data in a wrong way.
Your method getRestaurantsBySearch
is accepting the last two parameter as header field i.e accept
and user-key
. But while calling the method you are passing headers first.
Pass the data as you have declared it in method signature of getRestaurantsBySearch