Requires any of the roles: | member, oauthmember |
GET | /Ams/{ClientID}/Member/{MemberID}/Notifications | Return a list of notifications for a member. | |
---|---|---|---|
POST | /Ams/{ClientID}/Member/{MemberID}/Notifications | Update the notifications status for a member and reset the count flag date. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | body | int | No | |
PageNumber | body | int | No | |
PageSize | body | int | No | |
Offset | body | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
MemberID | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ClientID | form | int | No | |
ResponseStatus | form | ResponseStatus | No | |
BypassCache | form | bool | No | |
DateCached | form | DateTime | No | |
Device | form | Device | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
NotificationCount | form | int | No | |
NotificationList | form | List<Notification> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
Message | form | string | No | |
Headline | form | PostHeadline | No | |
MemberId | form | int | No | |
PostId | form | int | No | |
HeadshotImage | form | string | No | |
IsRead | form | bool | No | |
DateCreated | form | DateTime | No | |
Category | form | string | No | |
ActionType | form | ActionType | No | |
NavigateUrl | form | string | No | |
PrimaryId | form | int | No | |
PhotoUrl | form | string | No | |
PhotoUrlLarge | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
HeadlineText | form | string | No | |
HeadlineLink | form | List<LinkDetail> | No | |
Photo | form | string | No | |
PhotoId | form | int | No | |
PhotoOwnerId | form | int | No | |
PostId | form | int | No | |
CommentId | form | int | No | |
PhotoCommentId | form | int | No | |
GroupId | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Start | form | int | No | |
End | form | int | No | |
Length | form | int | No | |
Url | form | string | No | |
MemberId | form | int | No | |
PostId | form | int | No | |
EventId | form | int | No | |
GroupId | form | int | No | |
IsBold | form | bool | No | |
IsLink | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Ams/{ClientID}/Member/{MemberID}/Notifications HTTP/1.1
Host: ws.yourmembership.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
PageNumber: 0,
PageSize: 0,
Offset: 0,
MemberID: 0,
ClientID: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
BypassCache: False,
DateCached: 2025-01-15T08:33:57.9873427-05:00,
Device: Desktop
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { NotificationCount: 0, NotificationList: [ { Id: 0, Message: String, Headline: { HeadlineText: String, HeadlineLink: [ { Start: 0, End: 0, Length: 0, Url: String, MemberId: 0, PostId: 0, EventId: 0, GroupId: 0, IsBold: False, IsLink: False } ], Photo: String, PhotoId: 0, PhotoOwnerId: 0, PostId: 0, CommentId: 0, PhotoCommentId: 0, GroupId: 0 }, MemberId: 0, PostId: 0, HeadshotImage: String, IsRead: False, DateCreated: 0001-01-01, Category: String, ActionType: None, NavigateUrl: String, PrimaryId: 0, PhotoUrl: String, PhotoUrlLarge: String } ], Id: 0, PageNumber: 0, PageSize: 0, Offset: 0, MemberID: 0, ClientID: 0, ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } }, BypassCache: False, DateCached: 2025-01-15T08:33:58.0031005-05:00, Device: Desktop }