查詢 WhatsApp 類型通道號碼的傳送量指標。
介面說明
-
此介面只能查詢 WhatsApp 類型通道的號碼傳送量統計指標。
-
您可呼叫此介面查詢號碼傳送量指標,也可在通道管理>管理>客戶統計日報介面查詢號碼傳送量指標。
-
在呼叫此介面前,請先呼叫 EnableWhatsAppROIMetric 介面開啟 WhatsApp ROI 指標統計,開啟後至少需一天才會有統計資料,開啟前的訊息傳送量指標將不進行統計。
-
開啟 WhatsApp ROI 指標統計後,請確保您建立的通道已有成功傳送的訊息。您可在通道管理>管理>訊息傳送介面傳送訊息,或透過 SendChatappMessage 、 SendChatappMassMessage 介面傳送訊息。
QPS 限制
本介面的單使用者 QPS 限制為 50 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理呼叫。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cams:GetChatappPhoneNumberMetric |
get |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| IsvCode |
string |
否 |
ISV 驗證碼,用於驗證子帳號是否由 ISV 授權。 |
skdi3kksloslikd**** |
| CustSpaceId |
string |
否 |
ISV 子客戶的 SpaceId/執行個體 ID。即通道 ID,在通道管理介面檢視。 |
cams-************ |
| Granularity |
string |
否 |
指標粒度。取值:
|
DAILY |
| Start |
integer |
是 |
查詢開始時間。時間戳記,單位:毫秒。 |
1756742399000 |
| End |
integer |
是 |
查詢結束時間。時間戳記,單位:毫秒。 |
1758902399000 |
| PhoneNumber |
string |
否 |
商業號碼。即為您傳送訊息的號碼,在通道管理>管理>WABA 管理>號碼管理介面檢視。 |
861380000**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回資料。 |
||
| AccessDeniedDetail |
string |
存取被拒絕詳細資訊。 |
None |
| RequestId |
string |
請求 ID。 |
608F9CCA-B5EB-3D72-8047-B25D6D75BDEC |
| Message |
string |
錯誤提示資訊。 |
None |
| Data |
array<object> |
返回資料列表。 |
|
|
object |
返回資料物件。 |
||
| DeliveredCount |
integer |
到達量。 |
5 |
| Start |
integer |
指標統計開始時間。時間戳記,單位:毫秒。 |
1669619491000 |
| PhoneNumber |
string |
商業號碼。 |
861380000**** |
| End |
integer |
指標統計結束時間。時間戳記,單位:毫秒。 |
1667196043904 |
| Granularity |
string |
指標粒度。 |
DAILY |
| SentCount |
integer |
傳送量。 |
10 |
| Code |
string |
請求狀態碼。取值:
|
OK |
樣本
正常返回樣本
JSON格式
{
"AccessDeniedDetail": "None",
"RequestId": "608F9CCA-B5EB-3D72-8047-B25D6D75BDEC\n",
"Message": "None",
"Data": [
{
"DeliveredCount": 5,
"Start": 1669619491000,
"PhoneNumber": "861380000****",
"End": 1667196043904,
"Granularity": "DAILY",
"SentCount": 10
}
],
"Code": "OK"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Product.Unsubscript | You have not subscribed to the specified product. | |
| 400 | Ram.PermissionDeny | You are not authorized to perform the operation. | |
| 400 | System.LimitControl | The system is under flow control. | |
| 400 | Unknown.ResourceOwnerId | The resource does not belong to the current user. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。