Group

var client = new RestClient("https://api.messageflow.com/v2.1/group?offset=SOME_INTEGER_VALUE&limit=SOME_INTEGER_VALUE&orderBy=SOME_STRING_VALUE&orderDirection=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/group");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
request.AddParameter("application/json", "[{\"name\":\"test\",\"description\":\"Test descr\",\"externalId\":\"XXXXX-XXXX-XXXX\"}]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
var client = new RestClient("https://api.messageflow.com/v2.1/group");
var request = new RestRequest(Method.PUT);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
request.AddParameter("application/json", "[{\"id\":1234,\"name\":\"test\",\"description\":\"Test descr\"}]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
var client = new RestClient("https://api.messageflow.com/v2.1/group");
var request = new RestRequest(Method.DELETE);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
request.AddParameter("application/json", "{\"id\":[1]}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);

Last updated