API get notifications
1: Notifications
Base URL (develop enviroment) :
ENDPOINT: /notifications
METHOD: GET
PARAMETERS:
{
page: 1
}
HEADER:
{
X-Port-Type:PUB,
Authorization: Bear {access_token}
}
BODY: NONE
RESPONSE:
1.Status: Error
{
"status": "fail",
"message": "some thing went wrong!"
}
1.Status: Success
{
"status": "success",
"data": {
"notifications": [
{
"id": 218,
"publisher_id": 7,
"notification_id": 5,
"is_view": "1",
"notification": {
"id": 5,
"title": "Th\u00f4ng b\u00e1o ra m\u1eaft chi\u1ebfn d\u1ecbch Beautyfriend",
"description": "<p><strong>Beautyfriend<\/strong> l\u00e0 s\u00e0n TM\u0110T chuy\u00ean ph\u00e2n ph\u1ed1i v\u00e0 nh\u1eadp kh\u1ea9u c\u00e1c s\u1ea3n ph\u1ea9m l\u00e0m \u0111\u1eb9p n\u1ed5i ti\u1ebfng \u0111\u1ebfn t\u1eeb c\u00e1c th\u01b0\u01a1ng hi\u1ec7u top \u0111\u1ea7u nh\u01b0 <strong>Innisfree, The Face Shop, Ciracle<\/strong><\/p><p><br><\/p><p>Ch\u01b0\u01a1ng tr\u00ecnh khuy\u1ebfn m\u00e3i <strong><em>t\u1eb7ng m\u1eb7t n\u1ea1 Dermal tr\u1ecb gi\u00e1 75.000\u0111 cho m\u1ecdi \u0111\u01a1n h\u00e0ng<\/em><\/strong> <\/p><p><br><\/p><p>Chi\u1ebfn d\u1ecbch Beauty friend: <a href=\"https:\/\/workspace.accesstrade.vn\/campaigns\/191\" rel=\"noopener noreferrer\" target=\"_blank\">Link<\/a><\/p>",
"image": "https:\/\/statics-cdn.affgrow.com\/images\/notification\/image\/1603438350_940eaf5bc3203d7e6431jpg",
"start_date": null,
"end_date": null,
"time": null,
"is_publish": null,
"time_publish": "2020-10-23 14:32:49",
"username_publish": null,
"status": 2,
"url": "https:\/\/workspace.accesstrade.vn\/campaigns\/191",
"is_send_mail": null,
"deleted_at": null,
"created_at": "2020-10-23 14:32:30",
"updated_at": "2020-10-23 14:32:49",
"campaign_ids": [
191
]
}
},
{
"id": 187,
"publisher_id": 7,
"notification_id": 3,
"is_view": "1",
"notification": {
"id": 3,
"title": "Ch\u01b0\u01a1ng Tr\u00ecnh Khuy\u1ebfn M\u1ea1i N\u01b0\u1edbc Hoa Grateful",
"description": "<h3 class=\"ql-indent-5\">Khuy\u1ebfn M\u1ea1i N\u01b0\u1edbc Hoa<\/h3><p>"><\/p>",
"image": "https:\/\/statics-cdn.affgrow.com\/images\/notification\/image\/1602844912_loi_chuc_20_10_danh_cho_nhung_cap_doi_dang_yeu_1jpg",
"start_date": null,
"end_date": null,
"time": null,
"is_publish": null,
"time_publish": "2020-10-16 17:42:37",
"username_publish": null,
"status": 2,
"url": "https:\/\/quantrimang.com\/loi-chuc-20-10-cho-co-giao-175779",
"is_send_mail": null,
"deleted_at": null,
"created_at": "2020-10-16 17:41:55",
"updated_at": "2020-10-16 17:42:37",
"campaign_ids": [
25
]
}
},
{
"id": 1,
"publisher_id": 7,
"notification_id": 1,
"is_view": "1",
"notification": {
"id": 1,
"title": "Demo",
"description": "<p>We are here<\/p><p>FOR YOU<\/p><p>We believe that life rewards those who live to their full potential. That\u2019s why we\u2019re here to take care of tomorrow so you can focus on today. FWD is doing insurance differently: we offer easy-to-understand products and trustadvice relevant to what you value most.<\/p><p><br><\/p><p>From education to health, financial planning, retirement and more, we\u2019ve made insurance convenient so you can make the most of life. Our experts will help you build a plan that is right for you and your ambitions for the future.<\/p><p><br><\/p><p>In 2016, FWD acquired Great Eastern Life (Vietnam) Company Limited and changed the company name to FWD Vietnam Life Insurance Company Limited. FWD Vietnam aims to provide customer-led insurance coverage, including life insurance, personal accident, critical illness, and health-focused products. Along with ABBANK and NAM A BANK, our bank partners, we deliver a fresh customer experience and provide quality services nationwide in Vietnam.<\/p><p><br><\/p>",
"image": "https:\/\/statics-cdn.affgrow.com\/images\/notification\/image\/1602844534_11_29_2png",
"start_date": null,
"end_date": null,
"time": null,
"is_publish": null,
"time_publish": "2020-10-16 17:35:45",
"username_publish": null,
"status": 2,
"url": "https:\/\/www.fwd.com.vn\/en\/ve-tap-doan-fwd\/",
"is_send_mail": null,
"deleted_at": null,
"created_at": "2020-10-16 17:35:34",
"updated_at": "2020-10-16 17:35:45",
"campaign_ids": [
25
]
}
}
],
"meta": {
"total": 4,
"per_page": 20,
"total_new": 0,
"current_page": 1,
"last_page": 1
}
}
}
2. Notification detail
Base URL (develop enviroment) :
ENDPOINT: /notification/{notification_id}
METHOD: POST
PARAMETERS: NONE
HEADER:
{
X-Port-Type:PUB,
Authorization: Bear {access_token}
}
BODY: NONE
RESPONSE:
1.Status: Error
{
"status": "fail",
"message": "some thing went wrong!"
}
1.Status: Success
{
"status": "success",
"data": {
"notification": {
"id": 2,
"title": "Qu\u00e0 T\u1eb7ng 20-10",
"description": "<p>D\u01b0\u1edbi \u0111\u00e2y l\u00e0 nh\u1eefng l\u1eddi ch\u00fac 20-10 cho c\u00f4 gi\u00e1o hay, m\u1eddi c\u00e1c b\u1ea1n tham kh\u1ea3o \u0111\u1ec3 c\u00f3 nh\u1eefng l\u1eddi ch\u00fac \u00fd ngh\u0129a g\u1eedi t\u1edbi c\u00f4 gi\u00e1o nh\u00e2n ng\u00e0y 20-10, ng\u00e0y ph\u1ee5 n\u1eef Vi\u1ec7t Nam.<\/p><p>1. Nh\u00e2n ng\u00e0y 20\/10, em ch\u00fac c\u00f4 gi\u00e1o v\u00e0 c\u00e1c b\u1ea1n n\u1eef trong l\u1edbp \u0111\u01b0\u1ee3c nhi\u1ec1u qu\u00e0 v\u00e0 ng\u00e0y c\u00e0ng c\u00f3 nhi\u1ec1u ng\u01b0\u1eddi qu\u00fd m\u1ebfn h\u01a1n. V\u00e0 h\u01a1n h\u1ebft, xin ch\u00fac t\u1ea5t c\u1ea3 ph\u1ee5 n\u1eef Vi\u1ec7t Nam lu\u00f4n lu\u00f4n h\u1ea1nh ph\u00fac trong cu\u1ed9c s\u1ed1ng!<\/p><p>2. Ch\u00fac m\u1eebng c\u00f4 nh\u00e2n ng\u00e0y 20\/10. Ch\u00fac c\u00f4 th\u1eadt nhi\u1ec1u s\u1ee9c kh\u1ecfe, ni\u1ec1m vui v\u00e0 h\u1ea1nh ph\u00fac. K\u00ednh t\u1eb7ng c\u00f4 nh\u1eefng b\u00f4ng hoa t\u01b0\u01a1i th\u1eafm nh\u1ea5t! \u2013 D\u00e0nh t\u1eb7ng nh\u1eefng t\u00ecnh c\u1ea3m s\u00e2u s\u1eafc v\u00e0 t\u00f4n k\u00ednh nh\u1ea5t \u0111\u1ebfn c\u00f4 gi\u00e1o trong ng\u00e0y 20\/10.<\/p><p>3. Ch\u00fac m\u1eebng c\u00f4 nh\u00e2n ng\u00e0y 20\/10. K\u00ednh ch\u00fac c\u00f4 lu\u00f4n m\u1ea1nh kho\u1ebb, h\u1ea1nh ph\u00fac, th\u00e0nh \u0111\u1ea1t trong cu\u1ed9c s\u1ed1ng.<\/p><p>4. G\u1eedi l\u1eddi ch\u00fac 20\/10 t\u1eb7ng c\u00f4, ch\u00fac c\u00f4 vui v\u1ebb, h\u1ea1nh ph\u00fac v\u00e0 lu\u00f4n m\u1ea1nh kh\u1ecfe \u0111\u1ec3 ti\u1ebfp t\u1ee5c d\u00ecu d\u1eaft ch\u00fang em tr\u00ean con \u0111\u01b0\u1eddng h\u1ecdc t\u1eadp.<\/p><p><\/p>",
"image": "https:\/\/statics-cdn.affgrow.com\/images\/notification\/image\/1602844912_loi_chuc_20_10_danh_cho_nhung_cap_doi_dang_yeu_1jpg",
"start_date": null,
"end_date": null,
"time": null,
"is_publish": null,
"time_publish": "2020-10-16 17:42:37",
"username_publish": null,
"status": 2,
"url": "https:\/\/quantrimang.com\/loi-chuc-20-10-cho-co-giao-175779",
"is_send_mail": null,
"deleted_at": null,
"created_at": "2020-10-16 17:41:55",
"updated_at": "2020-10-16 17:42:37",
"campaign_ids": [
25
],
"campaign": [
{
"id": 25,
"code": "CAM000000025",
"name": "Campaign Demo Th\u1eed Nghi\u1ec7m",
"url": "https:\/\/chobits.myharavan.com",
"domain": "chobits.myharavan.com",
"logo": "https:\/\/statics-cdn.affgrow.com\/images\/campaigns\/logo\/1599111906_campaign demo.png"
}
]
}
}
}
Last updated
Was this helpful?