Unione.Net 1.0.1

dotnet add package Unione.Net --version 1.0.1                
NuGet\Install-Package Unione.Net -Version 1.0.1                
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="Unione.Net" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Unione.Net --version 1.0.1                
#r "nuget: Unione.Net, 1.0.1"                
#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 Unione.Net as a Cake Addin
#addin nuget:?package=Unione.Net&version=1.0.1

// Install Unione.Net as a Cake Tool
#tool nuget:?package=Unione.Net&version=1.0.1                

Unione Net

Baseado em .Net Standard 2.0 essa biblioteca é um fork com base no projeto unione-csharp.

Instalação

Adicione a biblioteca às referências do seu projeto. Apos isso crie uma instância do tipo Configuration, passando os dados básicos para comunicação com Unione.

Configuration configuration = new Configuration()
        {            
            ServerAddress = "us1.unione.io"
            ApiKey = "...",
            ServerTimeout = 5,
            EnableLogging = true
        };

  • ServerAddress: Você deve enviar uma solicitação de API para o servidor em que sua conta está registrada. eu1.unione.io(servidor europeu UniOne) ou us1.unione.io(servidor UniOne dos EUA e Canadá).
  • ApiKey: Chave de API gerada na sua conta UniOne
  • ServerTimeout: Tempo limite padrão de 30 segundos
  • EnableLogging: Defina como true se quiser gerar logs

Crie uma instância UniOne para usar os métodos implementados

        UniOne uni = new UniOne(configuration);
        
        //Envia um email
        EmailResponseData result = await uni.Email.Send(new EmailMessageData
        {
            //preencha as propriedade conforme a sua necessidade...
            FromEmail = "teste@teste.com",
            FromName = "Luis",
            Body = new Body
            {
                Html = "<p>Email de teste</p>"
            }
        });
        
        //Listar os webhooks cadastrados
        WebhookData webhook = await uni.Webhook.List();

Implementações

A biblioteca implementa essas classes com seus respectivos métodos. Para mais detalhes, consulte a documentação da API UniOne.

Email

  • async Task<EmailResponseData> Send(EmailMessageData message)
  • async Task<IOperationResult<string>> Subscribe(string fromEmail, string fromName, string toEmail)

EmailValidation

  • async Task<EmailValidationData> ValidationSingle(string emailAddress)

Template

  • async Task<IOperationResult<string>> Set(TemplateData templateData)
  • async Task<TemplateData> Get(string id)
  • async Task<TemplateList> List(int limit = 50, int offset = 0)
  • async Task<IOperationResult<string>> Detele(string id)

Webhook

  • async Task<IOperationResult<string>> Set(WebhookData webhookData)
  • async Task<WebhookData> Get(string url)
  • async Task<WebhookData> List(int limit = 50, int offset = 0)
  • async Task<IOperationResult<string>> Delete(string url)

Suppression

  • async Task<SuppressionData> Set(string email, string cause, DateTime created)
  • async Task<SuppressionData> Get(string email, bool all_projects)
  • async Task<SuppressionData> List(string cause ="" , string source = "" , DateTime? start_time = null, string cursor = "", int limit = 50)
  • async Task<SuppressionData> Delete(string email)

Domain

  • async Task<DomainData> GetDNSRecords(string domain)
  • async Task<DomainData> ValidateVerificationRecord(string domain)
  • async Task<DomainData> ValidateDkim(string domain)
  • async Task<DomainList> List(string domain, int limit = 50,int offset = 0 )

EventDump

  • async Task<IOperationResult<string>> Create(EventDumpRequest request)
  • async Task<EventDumpRequest> Get(string dumpId)
  • async Task<EventDumpList> List(int limit = 50, int offset = 0)
  • async Task<IOperationResult<string>> Detele(string dumpId)

Tag

  • async Task<TagList> List()
  • async Task<IOperationResult<string>> Detele(int tagId)

Project

  • async Task<ProjectInputData> Create(string name, string country, bool send_enabled, bool custom_unsubscribe_url_enabled, int backendId)
  • async Task<ProjectInputData> Update(string id,string name, string country, bool send_enabled, bool custom_unsubscribe_url_enabled, int backendId)
  • async Task<ProjectDataList> List(string project_id = "" , string project_api_key = "")
  • async Task<IOperationResult<string>> Delete(string id, string project_api_key)

System

  • async Task<SystemInfoData> SystemInfo()

Obsolete

  • async Task<UnsubscribedData> UnsubscribedSet(string emailAddress)
  • async Task<UnsubscribedData> UnsubscribedCheck(string emailAddress)
  • async Task<UnsubscribedList> UnsubscribedList(string emailAddress)

Generic

  • async Task<T> CustomRequest<T>(string request, object obj, Func<string, string, OperationResult<T>> operationResultCreator) where T : class

Licença

A biblioteca está disponível como código aberto sob os termos da Licença MIT.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.0.1 90 12/16/2024