Alright, I’ll be the first to admit my skills are lacking. Most of my development is spent on iOS. With that out of the way, I am having a beast of a working in with . It has functions to do the request signing for you that that either a HttpUriRequest, or an HttpURLConnection. I can only find java examples and those tell me to use something called DefaultHttpClient to get a HttpClient object and HttpGet to make the getRequest. Those don’t seem to be things in Kotlin. When I try importing the apache libraries into my gradle file it tells me it will cause issues. Can someone help me figure out the Kotlin equivalent to the following:

(Example Java Code from
HttpClient client = new DefaultHttpClient();
HttpGet verifyGet = new HttpGet(“”);
HttpResponse response = client.execute(verifyGet);

Source link


Please enter your comment!
Please enter your name here