Kampanyaları Getirir

Kampanyaları getirir.

GET/general/Campaigns
Response

Success

Body
Namenullable string
CreatedDatestring (date-time)
EndDatestring (date-time)
Contentnullable string
Subjectnullable string
IsActiveboolean
Urlnullable string
Request
const response = await fetch('/general/Campaigns', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "Name": "text",
    "CreatedDate": "2024-07-23T13:56:56.445Z",
    "EndDate": "2024-07-23T13:56:56.445Z",
    "Content": "text",
    "Subject": "text",
    "IsActive": false,
    "Url": "text"
  }
]
var options = new RestClientOptions("https://apitest.nilvera.com")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/general/Campaigns", Method.Get);
request.AddHeader("Authorization", "APIKEY");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

Last updated