tvpl.api

<back to all web services

GetNotificationFilter

Lấy danh sách các Notification mới nhất của người dùng hiện tại

Requires Authentication
The following routes are available for this service:
GET/notificationsLấy danh sách các Notification mới nhất
GetNotificationFilter Parameters:
NameParameterData TypeRequiredDescription
FilterqueryNotificationFilterNo
PagingRequest Parameters:
NameParameterData TypeRequiredDescription
PageformintNo
LimitformintNo
NotificationFilter Enum:
Unread
All
NotificationResponse Parameters:
NameParameterData TypeRequiredDescription
CodeformintNo
MessageformstringYes
NotificationsformList<Notification>No
UnreadCountformintNo
TotalCountformintNo
Notification Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
AccountIdformintNo
TitleformstringYes
MessageformstringYes
PayloadformstringYes
CreatedOnformDateTimeNo
ReadOnformDateTime?No
PushOnformDateTime?No
DeletedOnformDateTime?No

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /notifications HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"code":0,"message":"String","notifications":[{"id":"String","accountId":0,"title":"String","message":"String","payload":"String","createdOn":"0001-01-01T00:00:00.0000000+07:06","readOn":"0001-01-01T00:00:00.0000000+07:06","pushOn":"0001-01-01T00:00:00.0000000+07:06","deletedOn":"0001-01-01T00:00:00.0000000+07:06"}],"unreadCount":0,"totalCount":0}