This repository contains an example of how to use the API with C#, using the RestSharp package.
GET /oauth/v2/token
for the authentication processGET /1.0/list.json
get a list of existing contact listsPOST /1.0/list.json
to create a new listPOST /1.0/list/{id}/import.json
to import a csv file into an specific listPOST /1.0/campaign.json
to create a listPOST /1.0/campaign/{id}/schedule.json
to schedule an existing campaign
See more api details at postman doc, using the C# - RestSharp
language option.
To test this example, replace the following variable values on Program.cs
:
string client_id = "CLIENT_ID";
string client_secret = "CLIENT_SCRET";
string client_slug = "SLUG";
If .net is installed as one of the options given by microsoft, then use:
$ dotnet run
- Ubuntu 20.04 with dotnet 6.0