Skip to content

Commit

Permalink
Closes#71 - Added additional filtering to members
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonseydel committed Aug 5, 2016
1 parent 07245ea commit 3158adc
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MailChimp.Net/Core/Requests/MemberRequest.cs
Expand Up @@ -16,6 +16,12 @@ public class MemberRequest : QueryableBaseRequest
[QueryString("email_type")]
public string EmailType { get; set; }

[QueryString("unique_email_id")]
public string UniqueEmailId { get; set; }

[QueryString("vip_only")]
public bool VipOnly { get; set; }

[QueryString("status")]
public Status? Status { get; set; }

Expand Down
19 changes: 19 additions & 0 deletions MailChimp.Net/Core/Responses/ListActivityResponse.cs
@@ -0,0 +1,19 @@
using MailChimp.Net.Models;
using Newtonsoft.Json;
using System.Collections.Generic;

namespace MailChimp.Net.Core
{
public class ListActivityResponse : BaseResponse
{
public ListActivityResponse()
{
this.Activities = new List<ListActivity>();
}
[JsonProperty("activity")]
public IEnumerable<ListActivity> Activities { get; set; }

[JsonProperty("list_id")]
public string ListId { get; set; }
}
}
22 changes: 22 additions & 0 deletions MailChimp.Net/Models/EmailMemberActivity.cs
@@ -0,0 +1,22 @@
using Newtonsoft.Json;

namespace MailChimp.Net.Models
{
public class EmailMemberActivity
{
[JsonProperty("action")]
public string Action { get; set; }

[JsonProperty("timestamp")]
public string Timestamp { get; set; }

[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("ip")]
public string Ip { get; set; }
}
}
38 changes: 38 additions & 0 deletions MailChimp.Net/Models/ListActivity.cs
@@ -0,0 +1,38 @@
using Newtonsoft.Json;

namespace MailChimp.Net.Models
{
public class ListActivity
{

[JsonProperty("day")]
public string Day { get; set; }

[JsonProperty("emails_sent")]
public int EmailsSent { get; set; }

[JsonProperty("unique_opens")]
public int UniqueOpens { get; set; }

[JsonProperty("recipient_clicks")]
public int RecipientClicks { get; set; }

[JsonProperty("hard_bounce")]
public int HardBounce { get; set; }

[JsonProperty("soft_bounce")]
public int SoftBounce { get; set; }

[JsonProperty("subs")]
public int Subs { get; set; }

[JsonProperty("unsubs")]
public int Unsubs { get; set; }

[JsonProperty("other_adds")]
public int OtherAdds { get; set; }

[JsonProperty("other_removes")]
public int OtherRemoves { get; set; }
}
}

2 comments on commit 3158adc

@brandonseydel
Copy link
Owner Author

Choose a reason for hiding this comment

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

Closes #71

@Jalinco1
Copy link

Choose a reason for hiding this comment

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

ok col, can you also give an example of the call to get a user using the UNIQUEID ?

Please sign in to comment.