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
": {} }
data
다음 필드는 반환된 각 노드에 추가됩니다:
필드 | 설명 |
---|---|
tasks list<string> | Tasks the user has on the WABA |
paging
summary
수치 등 에지에 관해 집계된 정보입니다. 요약 매개변수에 가져오려면 해당 필드를 지정하세요(예: summary=total_count
).
필드 | 설명 |
---|---|
total_count unsigned int32 | Total count |
오류 | 설명 |
---|---|
100 | Invalid parameter |
200 | Permissions error |
190 | Invalid OAuth 2.0 Access Token |
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
에 POST 요청을 하여 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 |
/{whats_app_business_account_id}/assigned_users
에 DELETE 요청을 만들어 a WhatsAppBusinessAccount에서 a WhatsAppBusinessAccount을(를) 분리할 수 있습니다.매개변수 | 설명 |
---|---|
user UID | Business user ID 필수 |
success
: bool, 오류 | 설명 |
---|---|
100 | Invalid parameter |