Skip to content

fortesinformatica/RdStationApi

Repository files navigation

RdStationApi Client

Build status Nuget count Nuget downloads Coverage Status

Simple C# client to send leads to RdStation

Instaling

PM> Install-Package RdStationApi.Client

Sending Lead Async

IRdStationApiClient client = new RdStationApiClient();
ILead lead = new Lead("token", "identificador", "email@fulano.com");
var sent = await client.SendLead(lead);

Sending Lead Sync

IRdStationApiClient client = new RdStationApiClient();
ILead lead = new Lead("token", "identificador", "email@fulano.com");
var sent = client.SendLeadSync(lead);

Chaning Lead Status Async

IRdStationApiClient client = new RdStationApiClient();
var leadStatus = new LeadStatusRoot("authPrivateToken", new LeadStatus(LifeCycleLeadStage.LeadQualificado, true));
var sent = await client.ChangeLeadStatus("lead@email.com.br", leadStatus);

Chaning Lead Status Sync

IRdStationApiClient client = new RdStationApiClient();
var leadStatus = new LeadStatusRoot("authPrivateToken", new LeadStatus(LifeCycleLeadStage.LeadQualificado, true));
var sent = client.ChangeLeadStatusSync("lead@email.com.br", leadStatus);

Source links to RDStation REST API

Releases

No releases published

Packages

No packages published