Template

var client = new RestClient("https://api.messageflow.com/v2.1/email/template?offset=SOME_INTEGER_VALUE&limit=SOME_INTEGER_VALUE&smtpAccount=SOME_STRING_VALUE&externalId=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/template");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
request.AddParameter("application/json", "{\"html\":\"string\",\"text\":\"string\",\"name\":\"string\",\"externalId\":\"string\",\"smtpAccount\":\"string\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
var client = new RestClient("https://api.redlink.pl/v2.1/email/template");
var request = new RestRequest(Method.DELETE);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
request.AddParameter("application/json", "{\"externalId\":[\"XXX-XXX\"]}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);

Last updated