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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
- Newtonsoft.Json (>= 10.0.3)
- RestSharp (>= 105.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.