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

python - What's the Pythonic way to report nonfatal errors in a parser? -

sql server - Deadlock occuring in Clustered Columnstore index -

angular - Converting AngularJS deffered promise to AngularX observable for JSOM -