elastic_email_api_v3_client_library_beta 3.0.9

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package elastic_email_api_v3_client_library_beta --version 3.0.9
NuGet\Install-Package elastic_email_api_v3_client_library_beta -Version 3.0.9
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="elastic_email_api_v3_client_library_beta" Version="3.0.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add elastic_email_api_v3_client_library_beta --version 3.0.9
#r "nuget: elastic_email_api_v3_client_library_beta, 3.0.9"
#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 elastic_email_api_v3_client_library_beta as a Cake Addin
#addin nuget:?package=elastic_email_api_v3_client_library_beta&version=3.0.9

// Install elastic_email_api_v3_client_library_beta as a Cake Tool
#tool nuget:?package=elastic_email_api_v3_client_library_beta&version=3.0.9

elastic_email_api_v3_client_library_beta - the C# library for the ElasticEmail API (beta)

Send your emails with ElasticEmail API

This C# SDK is automatically generated by the OpenAPI Generator project:

  • API version: 3.0.1
  • SDK version: 3.0.9
  • Build package: org.openapitools.codegen.languages.CSharpClientCodegen

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using elastic_email_api_v3_client_library_beta.Api;
using elastic_email_api_v3_client_library_beta.Client;
using elastic_email_api_v3_client_library_beta.Model;

Packaging

A .nuspec is included with the project. You can follow the Nuget quickstart to create and publish packages.

This .nuspec uses placeholders from the .csproj, so build the .csproj directly:

nuget pack -Build -OutputDirectory out elastic_email_api_v3_client_library_beta.csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

Getting Started

using System.Collections.Generic;
using System.Diagnostics;
using elastic_email_api_v3_client_library_beta.Api;
using elastic_email_api_v3_client_library_beta.Client;
using elastic_email_api_v3_client_library_beta.Model;

namespace Example
{
    public class Example
    {
        public static void Main()
        {

            Configuration.Default.BasePath = "https://api.elasticemail.com/v3";
            // Configure API key authorization: apikey
            Configuration.Default.ApiKey.Add("X-ElasticEmail-ApiKey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-ElasticEmail-ApiKey", "Bearer");

            var apiInstance = new AccountsApi(Configuration.Default);

            try
            {
                // Load Account
                Account result = apiInstance.AccountsGet();
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling AccountsApi.AccountsGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }

        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.elasticemail.com/v3

Documentation for Authorization

apikey

  • Type: API key

  • API key parameter name: X-ElasticEmail-ApiKey

  • Location: HTTP header

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  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