Mô hình định giá theo cuộc trò chuyện đã thay đổi. Hãy xem bài viết Định giá để tìm hiểu cách hoạt động của mô hình định giá theo cuộc trò chuyện mới.
Ngoài ra, chế độ hiển thị của metric_types
đã thay đổi kể từ ngày 01/07/2023. Vui lòng xem bảng Dữ liệu phân tích cuộc trò chuyện để biết thêm chi tiết.
WhatsApp Business Account (WABA) Analytics
Requirements
whatsapp_business_management permission
whatsapp_business_messaging permission
public_profile permission
WhatsApp Business Account (WABA) ID
USER ACCESS TOKEN
Request
curl -i -X GET \
"https://graph.facebook.com/LATEST-VERSION/WHATSAPP-BUSINESS-ACCOUNT-ID?fields=analytics.start(1641024000).end(1651094880).granularity(DAY)&
access_token=USER-ACCESS-TOKEN"
Response
{ "analytics": { "phone_numbers": [ "PHONE-NUMBER" ], "granularity": "DAY", "data_points": [ { "start": 1647327600, "end": 1647414000, "sent": 1, "delivered": 1 }, { "start": 1648710000, "end": 1648796400, "sent": 4, "delivered": 4 }, { "start": 1648796400, "end": 1648882800, "sent": 1, "delivered": 1 }, { "start": 1650265200, "end": 1650351600, "sent": 1, "delivered": 1 }, { "start": 1650351600, "end": 1650438000, "sent": 1, "delivered": 1 } ] }, "id": "WHATSAPP-BUSINESS-ACCOUNT-ID" }
Trường thông tin | Mô tả |
---|---|
country_codes list<string> | List of ISO 3166 country codes (e.g. US, IN) |
data_points | List of analytics data points (e.g. {start: 0, end: 10000, sent: 10, delivered: 9}) |
granularity string | Granularity of data (options are half_hour, day, month) |
phone_numbers list<numeric string> | List of WhatsApp normalized phone numbers (e.g. [16315551000]) |