Dlp.PomboCorreio.Connector 1.2.0

dotnet add package Dlp.PomboCorreio.Connector --version 1.2.0                
NuGet\Install-Package Dlp.PomboCorreio.Connector -Version 1.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dlp.PomboCorreio.Connector" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dlp.PomboCorreio.Connector --version 1.2.0                
#r "nuget: Dlp.PomboCorreio.Connector, 1.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Dlp.PomboCorreio.Connector as a Cake Addin
#addin nuget:?package=Dlp.PomboCorreio.Connector&version=1.2.0

// Install Dlp.PomboCorreio.Connector as a Cake Tool
#tool nuget:?package=Dlp.PomboCorreio.Connector&version=1.2.0                

PomboCorreio-C#-SDK

Usage: Add the following keys to your config file:

<appSettings>
  <add key="PomboCorreio.GimKey"       value="YOUR_GIM_KEY"/>
</appSettings>

To send a email:

PomboCorreioMailManager pcMgr = new PomboCorreioMailManager();

//Create AuthenticationData Object
AuthenticationData authenticationData = new AuthenticationData() {
	Expire = 9999,
	Roles = new List<string>(){
		"send-email"
	}
};

//Generate the new token with your GimKey
PomboResponse authResponse = pcMgr.GenerateToken(authenticationData);
string token = authResponse.Content["token"];

//Create Email 
EmailMessageData emailMessageData = new EmailMessageData { 
	Recipients = new List<EmailContactData>() { 
		new EmailContactData { 
			Address = "murilo.stockinger@stone.com.br"
		} 
	},
	From = new EmailContactData{Address = "murilo.stockinger@stone.com.br"},
	Body = "Teste",
	Subject = "Teste"																	   
};

  PomboResponse response = pcMgr.SendEmail(emailMessageData, token);

To send a SMS is not very different, just create new instance of PomboCorreioSmsManager and call the send method.

Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 1,301 3/2/2018
1.1.0 1,163 1/8/2018
1.0.10 1,093 11/8/2017
1.0.9 924 10/26/2017
1.0.8 888 10/26/2017
1.0.7 934 9/26/2017
1.0.6 932 9/4/2017
1.0.5 957 8/14/2017
1.0.4 939 8/10/2017
1.0.3 929 8/7/2017
1.0.1 950 7/6/2017