java Mailgun email validation API response not working -


can 1 please?

i have created test mailgun domain , have public , private api key.

i using jersey client validate email address using mailgun api. don't json response instead string "mailgun magnificent api".

below piece of code

public static clientresponse validateaddress() {     client client = client.create();     client.addfilter(new httpbasicauthfilter("api", myapikey));     webresource webresource = client.resource("https://api.mailgun.net/v3/sandboxxxxx.mailgun.org/validate");      clientresponse response = webresource.queryparam("address", "mamta.solanki@ecrebo.co.uk").accept("application/json").type(mediatype.application_json_type).get(clientresponse.class);     return response;  } public static void main(string args[]) {      clientresponse res = validateaddress();      system.out.println(res);} 


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -