Blacklist

var client = new RestClient("https://api.messageflow.com/v2.1/email/blacklist?offset=SOME_INTEGER_VALUE&limit=SOME_INTEGER_VALUE&smtpAccount=SOME_STRING_VALUE");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
IRestResponse response = client.Execute(request);
var client = new RestClient("https://api.messageflow.com/v2.1/email/blacklist?email=SOME_STRING_VALUE&smtpAccount=SOME_STRING_VALUE&reason=SOME_STRING_VALUE&comment=SOME_STRING_VALUE");
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
IRestResponse response = client.Execute(request);
var client = new RestClient("https://api.messageflow.com/v2.1/email/blacklist/%7Bsmtp%7D");
var request = new RestRequest(Method.DELETE);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
request.AddParameter("application/json", "{\"id\":[\"mail@mail.com\"]}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);

Last updated