September 19, 2018

Currency Cron job sample

String url = "http://www.apilayer.net/api/live?access_key=" + currencyApiKey;
HttpGet httpGet = new HttpGet(url);
httpGet.addHeader("Accept", "application/json");
httpGet.addHeader("Content-type", "application/json");

HttpClient httpClient = HttpClientBuilder.create().build();
HttpResponse response = httpClient.execute(httpGet);

No comments:

Post a Comment

Your feedback may help others !!!

Facebook comments