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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -