Sms

var client = new RestClient("https://api.messageflow.com/v2.1/sms/%7BexternalId%7D?offset=SOME_INTEGER_VALUE&limit=SOME_INTEGER_VALUE&sender=SOME_STRING_VALUE&phoneNumber=SOME_STRING_VALUE&status=SOME_INTEGER_VALUE&orderBy=SOME_STRING_VALUE&orderDirection=SOME_STRING_VALUE&dateTo=SOME_STRING_VALUE&dateFrom=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/sms");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
request.AddParameter("application/json", "{\"sender\":\"string\",\"message\":\"Hello world!\",\"phoneNumbers\":[\"+48111222333\",\"+48111222444\"],\"validity\":0,\"scheduleTime\":0,\"type\":1,\"shortLink\":true,\"webhookUrl\":\"string\",\"externalId\":\"xxxx-xxxx-xxxx\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);

Last updated