Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

NuGet v1.0.5

  • Loading branch information...
commit 5efc8192be3943c2c150b9a9f98d13b52c81fa01 1 parent 5c64b23
@danielcrenna danielcrenna authored
View
3  .gitignore
@@ -33,4 +33,5 @@ publish.xml
TestResults
/src/Postmark.Tests/App.config
App.config
-src/Postmark.Tests/App.config
+src/Postmark.Tests/App.config
+src/Postmark.Tests/PostmarkClientTests.Work.cs
View
4 postmark.nuspec
@@ -2,7 +2,7 @@
<package>
<metadata>
<id>Postmark</id>
- <version>1.0.4</version>
+ <version>1.0.5</version>
<authors>Daniel Crenna</authors>
<owners>Wildbit</owners>
<description>Leave email delivery to the experts with this plugin to bring Postmark email services to your web application. Requires a Postmark account.</description>
@@ -13,7 +13,7 @@
<iconUrl>http://apitize.com.s3.amazonaws.com/logo_postmark.png</iconUrl>
<tags>postmark email web api client http rest services wrapper json</tags>
<dependencies>
- <dependency id="Hammock" version="1.2.3" />
+ <dependency id="Hammock" version="1.2.4" />
<dependency id="Newtonsoft.Json" version="4.0.2" />
<dependency id="Specifications" version="1.0.4" />
</dependencies>
View
7 src/Postmark/Postmark.csproj
@@ -40,7 +40,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\bin\lib\40\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DefineConstants>TRACE;DEBUG;NET40</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
@@ -56,8 +56,9 @@
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
- <Reference Include="Hammock.ClientProfile">
- <HintPath>..\packages\Hammock.1.2.3\lib\net40-client\Hammock.ClientProfile.dll</HintPath>
+ <Reference Include="Hammock.ClientProfile, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c148cfba29ed1a4d, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\Hammock.1.2.4\lib\net40-client\Hammock.ClientProfile.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.4.0.2\lib\net40\Newtonsoft.Json.dll</HintPath>
View
6 src/Postmark/PostmarkClient.cs
@@ -217,6 +217,7 @@ public PostmarkDeliveryStats GetDeliveryStats()
if (inactive.HasValue) request.AddParameter("inactive", inactive.Value.ToString().ToLowerInvariant());
if (!string.IsNullOrEmpty(emailFilter)) request.AddParameter("emailFilter", emailFilter);
if (!string.IsNullOrEmpty(tag)) request.AddParameter("tag", tag);
+ request.AddParameter("type", type.ToString());
request.AddParameter("offset", offset.ToString());
request.AddParameter("count", count.ToString());
@@ -296,8 +297,7 @@ public PostmarkBounces GetBounces(PostmarkBounceType type, string emailFilter, s
/// <param name = "count">The number of results to return by the page offset; mandatory.</param>
/// <returns></returns>
/// <seealso href = "http://developer.postmarkapp.com/bounces" />
- public PostmarkBounces GetBounces(PostmarkBounceType type, bool? inactive, string emailFilter, int offset,
- int count)
+ public PostmarkBounces GetBounces(PostmarkBounceType type, bool? inactive, string emailFilter, int offset, int count)
{
return GetBounces(type, inactive, emailFilter, null, offset, count);
}
@@ -361,7 +361,7 @@ public PostmarkBounceActivation ActivateBounce(string bounceId)
var request = NewBouncesRequest();
request.Method = WebMethod.Put;
request.Path = string.Format("bounces/{0}/activate", bounceId.Trim());
-
+
var response = _client.Request(request);
return JsonConvert.DeserializeObject<PostmarkBounceActivation>(response.Content, _settings);
View
2  src/Postmark/packages.config
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="Hammock" version="1.2.3" />
<package id="Newtonsoft.Json" version="4.0.2" />
<package id="Specifications" version="1.0.4" />
+ <package id="Hammock" version="1.2.4" />
</packages>
Please sign in to comment.
Something went wrong with that request. Please try again.