i want to consume API but not understanding how, I have some things in chunks but not understandable how to use this.
Can some one help me with this. below have some hint with API and other.
url parameter from text box = 9999999999,8888888888
End Point Defination
GET : https://dndcheck.p.mashape.com/index.php
REQQUEST Example :
Task<HttpResponse<MyClass>> response = Unirest.get("https://dndcheck.p.mashape.com/index.php?mobilenos=9999999999%2C8888888888") .header("X-Mashape-Key", "pNbCJwwIRomshADW9uYFkiP5hgz7p10710KjsnTsk9Kf07qOiw") .asJson();
RESPONSE BODY
This is the response from the service
[ { "mobilenumber": "9999999999", "DND_status": "on", "activation_date": "12-02-2013 00:40", "current_preference": "0", "preference_history": [ { "preference_date": "11-02-2013", "preference": "1#3#6#7", "status": "Active" }, { "preference_date": "07-02-2013", "preference": "0", "status": "Active" }, { "preference_date": "31-01-2013", "preference": "0", "status": "Active" }, { "preference_date": "28-01-2013", "preference": "0", "status": "De Active" }, { "preference_date": "30-12-2012", "preference": "0", "status": "Active" }, { "preference_date": "24-12-2012", "preference": "1#2#3#4#5#6#7", "status": "Active" }, { "preference_date": "03-12-2012", "preference": "0", "status": "Active" }, { "preference_date": "29-11-2012", "preference": "0", "status": "De Active" }, { "preference_date": "15-11-2012", "preference": "0", "status": "Active" }, { "preference_date": "12-11-2012", "preference": "0", "status": "Active" }, { "preference_date": "12-11-2012", "preference": "0", "status": "Active" }, { "preference_date": "29-10-2012", "preference": "0", "status": "Active" }, { "preference_date": "29-10-2012", "preference": "0", "status": "Active" }, { "preference_date": "25-10-2012", "preference": "0", "status": "De Active" }, { "preference_date": "15-10-2012", "preference": "0", "status": "Active" }, { "preference_date": "15-10-2012", "preference": "0", "status": "Active" }, { "preference_date": "11-10-2012", "preference": "0", "status": "De Active" }, { "preference_date": "20-09-2012", "preference": "0", "status": "Active" }, { "preference_date": "18-09-2012", "preference": "0", "status": "Active" }, { "preference_date": "31-08-2012", "preference": "0", "status": "Active" }, { "preference_date": "20-08-2012", "preference": "1#4", "status": "Active" }, { "preference_date": "30-07-2012", "preference": "0", "status": "Active" }, { "preference_date": "30-07-2012", "preference": "0", "status": "Active" }, { "preference_date": "27-07-2012", "preference": "0", "status": "De Active" }, { "preference_date": "14-06-2012", "preference": "0", "status": "Active" }, { "preference_date": "11-06-2012", "preference": "0", "status": "Active" }, { "preference_date": "28-05-2012", "preference": "0", "status": "Active" }, { "preference_date": "24-05-2012", "preference": "0", "status": "Active" }, { "preference_date": "21-05-2012", "preference": "0", "status": "De Active" }, { "preference_date": "26-04-2012", "preference": "0", "status": "Active" }, { "preference_date": "26-04-2012", "preference": "0", "status": "Active" }, { "preference_date": "29-03-2012", "preference": "0", "status": "De Active" }, { "preference_date": "02-02-2012", "preference": "0", "status": "Active" }, { "preference_date": "02-02-2012", "preference": "0", "status": "Active" }, { "preference_date": "26-01-2012", "preference": "0", "status": "De Active" }, { "preference_date": "13-10-2011", "preference": "0", "status": "Active" }, { "preference_date": "13-10-2011", "preference": "0", "status": "Active" }, { "preference_date": "23-06-2011", "preference": "0", "status": "Active" } ] } ]