Example of C# code

Find here an example of C# code you can generate in order to use our API service.
Read more information on How To Use API page and purchase a suitable subscription.
Check the single email address
                var client = new RestClient("https://www.emailmagnifier.com/api/v1.0/analizeemail");
                var request = new RestRequest(Method.POST);
                request.AddHeader("content-type", "application/json");
                request.AddParameter("application/json", "{'Email': 'example@server.com', 
                                                           'AnalyzeAllMXRecords': true, 
                                                           'TestPosibility': true, 
                                                           'AuthorizationKey': 'a1a1a1a1-b2b2-c3c3-d4d4-e5e5e5e5e5e5'}"
                                    , ParameterType.RequestBody);
                IRestResponse response = client.Execute(request);
            
Check many email addresses
                var client = new RestClient("https://www.emailmagnifier.com/api/v1.0/analizeemails");
                var request = new RestRequest(Method.POST);
                request.AddHeader("content-type", "application/json");
                request.AddParameter("application/json", "{'Emails': ['example@server.com','example1@server.com','example2@server.com'],
                                                           'ResultURL' : 'http://www.returnurl.com',
                                                           'AnalyzeAllMXRecords': false,
                                                           'TestPosibility': true,
                                                           'AuthorizationKey': 'a1a1a1a1-b2b2-c3c3-d4d4-e5e5e5e5e5e5'}"
                                    , ParameterType.RequestBody);
                IRestResponse response = client.Execute(request);