1.0.9 • Published 5 years ago
adsbold-services v1.0.9
API Services nội bộ cho Adsbold
Cài đặt:
npm install adsbold-services
Services sử dụng
- Authorization Server
- Auto Inbox Server
- Customer Server
- Email Server
- Page Server
- Ticket Server
- Webhook Server
const adsboldServices = require("adsbold-services");
Tham số truyền vào gồm authorization
xác thực giữa các services, params
, payload
hoặc query
Authorization Server
Lấy thông tin phân công nhân viên.
adsboldServices.authServer.getDetailAssignee(authorization, assignee_id);
Lấy danh sách trang của một chủ shop.
adsboldServices.authServer.getPages(authorization, user_fb_id);
Auto Inbox Server
Thống kê gửi tin nhắn tự động.
adsboldServices.autoInboxServer.getStatisticAutoInbox(authorization, auto_inbox_id);
Customer Server
Lấy thông tin khách hàng.
adsboldServices.customerServer.getCustomer(authorization, {page_fb_id, fb_id});
Email Server
Gửi email.
adsboldServices.emailServer.sendEmail(authorization, {from, to, name, url});
Page Server
Lấy danh sách trang của một cửa hàng.
adsboldServices.pageServer.getPagesOfProject(authorization, project_id);
Cập nhật thông tin trang.
adsboldServices.pageServer.updatePage(authorization, page_fb_id, payload);
Xóa tất cả thẻ của một cửa hàng.
adsboldServices.pageServer.deleteTagsOfProject(authorization, project_id);
Ticket Server
Lấy tất cả vé đang hoạt động của chủ shop.
adsboldServices.pageServer.getActiveTickets(authorization, {user_id, status});
Webhook Server
Lấy danh sách trang ở trạng thái đang phát triển.
adsboldServices.webhookServer.getPages(authorization);