Skip to content

Commit

Permalink
Add JSON Serializer to AddMemberToGroups method. Closes #34.
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegregory committed Feb 12, 2018
1 parent 6a3aa8f commit 4c89964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions EmmaSharp/Methods/Members.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ public List<int> AddMemberToGroups(string memberId, MemberGroups members)
request.Resource = "/{accountId}/members/{memberId}/groups";
request.AddUrlSegment("memberId", memberId);

request.RequestFormat = DataFormat.Json;
request.JsonSerializer = new EmmaJsonSerializer();
request.AddBody(members);

return Execute<List<int>>(request);
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ EmmaSharp Release Notes
## HEAD (Unreleased)
* Update return type for GetSearchesCount. [#33](https://github.com/kylegregory/EmmaSharp/pull/33) via @MilSix
* Fixes UpdateStatusOfGroupMembersBasedOnCurrentStatus method to put groupId in the request body. [#32](https://github.com/kylegregory/EmmaSharp/issues/32) via @MiaWang7777
* Fixes AddMemberToGroups by adding JSON Serializer. [#34](https://github.com/kylegregory/EmmaSharp/issues/34) via @pbhandari1s

## 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
Expand Down

0 comments on commit 4c89964

Please sign in to comment.