Skip to content

Commit

Permalink
Release 1.1.0. Includes an update to require TLS 1.1 or 1.2 per Emma …
Browse files Browse the repository at this point in the history
…Documentation.
  • Loading branch information
kylegregory committed Aug 23, 2017
1 parent 24217df commit bc6420f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions EmmaSharp/EmmaSharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using RestSharp.Serializers;
using System;
using System.Diagnostics;
using System.Net;

namespace EmmaSharp
{
Expand Down Expand Up @@ -43,6 +44,9 @@ public EmmaApi(string publicKey, string secretKey, string accountId)
/// <returns>Response data from the API call.</returns>
private T Execute<T>(RestRequest request, int start = -1, int end = -1) where T : new()
{
// Explicitly set requests to TLS 1.1 or higher per Emma Documentation
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;

var client = new RestClient();
client.BaseUrl = new Uri(BaseUrl);

Expand Down
7 changes: 6 additions & 1 deletion ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
EmmaSharp Release Notes
=========

## HEAD (Unreleased)
* Fix for GroupName property naming inconsistancy in GetMailing to return Mailing Recipient Groups. [#25](https://github.com/kylegregory/EmmaSharp/issues/25) via @sabmah

## New in 1.1.0 (Released 2017/08/23)
* Fix for GroupName property naming inconsistency in GetMailing to return Mailing Recipient Groups. [#25](https://github.com/kylegregory/EmmaSharp/issues/25) via @sabmah
* Support for multi select fields. [#28](https://github.com/kylegregory/EmmaSharp/pull/28) via @SMarioMan
* Require TLS 1.1 or 1.2 per [documentation from Emma](https://community.myemma.com/emma/topics/emma-api-no-longer-supporting-tls-1-0-as-of-august-1st-2017).

## New in 1.0.5 (Released 2017/06/19)
* Undoing a regression in 1.0.4 for setting DataFormat.Json.
Expand Down

1 comment on commit bc6420f

@KieraAtkins
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!! thank you.

Please sign in to comment.