Returns the WhatsApp Business Account's assigned users.
Requirements
whatsapp_business_management permission
whatsapp_business_messaging permission
public_profile permission
BUSINESS ID (also referred to as BUSINESS MANAGER ID in Business Settings)
WhatsApp Business Account (WABA) ID
USER ACCESS TOKEN
Request
curl -i -X GET \
"https://graph.facebook.com/LATEST-VERSION/WHATSAPP-BUSINESS-ACCOUNT-ID/assigned_users?
business=BUSINESS-ID&
access_token=USER-ACCESS-TOKEN"
Response
{ "data": [ { "id": "ASSIGNED-USER-ID", "name": " ", "tasks": [ "MANAGE" ] } ], "paging": { "cursors": { "before": "BEFORE-CURSOR", "after": "AFTER-CURSOR" } } }
參數 | 說明 |
---|---|
business numeric string | business 必填 |
由此關係連線進行的閱讀將回傳 JSON 格式結果:
{ "
data
": [], "paging
": {}, "summary
": {} }
paging
summary
與關係連線相關的彙總資訊,例如次數等。請在摘要參數中指定要擷取的欄位(例如 summary=total_count
)。
欄位 | 說明 |
---|---|
total_count unsigned int32 | Total count |
錯誤 | 說明 |
---|---|
100 | Invalid parameter |
/{whats_app_business_account_id}/assigned_users
提出發佈要求,以更新 a WhatsAppBusinessAccount 。參數 | 說明 |
---|---|
tasks array<enum {MANAGE, DEVELOP, MANAGE_TEMPLATES, MANAGE_PHONE, VIEW_COST, MANAGE_EXTENSIONS, VIEW_PHONE_ASSETS, MANAGE_PHONE_ASSETS, VIEW_TEMPLATES, MESSAGING}> | Permissions on WhatsApp Business Account 必填 |
user UID | Business user ID 必填 |
success
: bool, 錯誤 | 說明 |
---|---|
100 | Invalid parameter |
200 | Permissions error |
80008 | There have been too many calls to this WhatsApp Business account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
/{whats_app_business_account_id}/assigned_users
提出刪除要求,中斷 a WhatsAppBusinessAccount 和 a WhatsAppBusinessAccount 的關聯。參數 | 說明 |
---|---|
user UID | Business user ID 必填 |
success
: bool, 錯誤 | 說明 |
---|---|
100 | Invalid parameter |