Skip to content

Fidelizador/fidelizador-csharp-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fidelizador C# + RestSharp example

This repository contains an example of how to use the API with C#, using the RestSharp package.

List of methods used:

  • GET /oauth/v2/token for the authentication process
  • GET /1.0/list.json get a list of existing contact lists
  • POST /1.0/list.json to create a new list
  • POST /1.0/list/{id}/import.json to import a csv file into an specific list
  • POST /1.0/campaign.json to create a list
  • POST /1.0/campaign/{id}/schedule.json to schedule an existing campaign

See more api details at postman doc, using the C# - RestSharp language option.

Configure credentials

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";

How to run on Linux

If .net is installed as one of the options given by microsoft, then use:

$ dotnet run

Tested On:

  • Ubuntu 20.04 with dotnet 6.0

About

Implementación de un cliente API mediante C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages