diegomgarcia / RdStationApi

Simple C# client to Send/Change Leads to RdStation

Home Page:https://github.com/fortesinformatica/RdStationApi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple C# client to Send/Change Leads to RdStation

https://github.com/fortesinformatica/RdStationApi

License:MIT License


Languages

Language:C# 98.5%Language:PowerShell 1.5%