YM REST Services

<back to all web services

Notifications

Requires Authentication
Requires any of the roles:member, oauthmember
The following routes are available for this service:
GET/Ams/{ClientID}/Member/{MemberID}/NotificationsReturn a list of notifications for a member.
POST/Ams/{ClientID}/Member/{MemberID}/NotificationsUpdate the notifications status for a member and reset the count flag date.
Notifications Parameters:
NameParameterData TypeRequiredDescription
IdbodyintNo
PageNumberbodyintNo
PageSizebodyintNo
OffsetbodyintNo
MemberBaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
MemberIDformintNo
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
NotificationsResponse Parameters:
NameParameterData TypeRequiredDescription
NotificationCountformintNo
NotificationListformList<Notification>No
Notification Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
MessageformstringNo
HeadlineformPostHeadlineNo
MemberIdformintNo
PostIdformintNo
HeadshotImageformstringNo
IsReadformboolNo
DateCreatedformDateTimeNo
CategoryformstringNo
ActionTypeformActionTypeNo
NavigateUrlformstringNo
PrimaryIdformintNo
PhotoUrlformstringNo
PhotoUrlLargeformstringNo
PostHeadline Parameters:
NameParameterData TypeRequiredDescription
HeadlineTextformstringNo
HeadlineLinkformList<LinkDetail>No
PhotoformstringNo
PhotoIdformintNo
PhotoOwnerIdformintNo
PostIdformintNo
CommentIdformintNo
PhotoCommentIdformintNo
GroupIdformintNo
LinkDetail Parameters:
NameParameterData TypeRequiredDescription
StartformintNo
EndformintNo
LengthformintNo
UrlformstringNo
MemberIdformintNo
PostIdformintNo
EventIdformintNo
GroupIdformintNo
IsBoldformboolNo
IsLinkformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
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":"2024-05-03T04:26:14.0357944-04:00","Device":"Desktop"}
HTTP/1.1 200 OK
Content-Type: application/json
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-01T00:00:00.0000000","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":"2024-05-03T04:26:14.0357944-04:00","Device":"Desktop"}