Category : rest

I’m trying to send a simple post request with a basic Json, but am unable to send forward the data from android to ASP.NET – C#. How do I send it? Java URL keyUrl = new URL(ConfigDataHolder.getInstance().getServerDomain()); HttpURLConnection connection = (HttpURLConnection) keyUrl.openConnection(); connection.setDoOutput(true); connection.setDoInput(true); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type", "application/json; utf-8"); connection.setRequestProperty("Accept", "application/json"); connection.setDoOutput(true); OutputStreamWriter writer = new ..

Read more

How do I build a retrofit request for a google place api text search. I am a bit confused on what annotations I should be using and how I should build the request depending on variables that might change depending on input. https://developers.google.com/maps/documentation/places/web-service/search Here’s the base url https://maps.googleapis.com/maps/api/place/findplacefromtext/output?parameters This is an example call with an ..

Read more