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" } } }
Parametro | Descrizione |
---|---|
business numeric string | business Obbligatorio |
La lettura da questo segmento fornirà un risultato formattato JSON:
{ "
data
": [], "paging
": {}, "summary
": {} }
data
I campi seguenti verranno aggiunti a ogni nodo restituito:
Campo | Descrizione |
---|---|
tasks list<string> | Tasks the user has on the WABA |
paging
summary
Informazioni aggregate sul segmento, ad esempio i numeri. Specifica i campi per recuperare il parametro del riepilogo (come riepilogo=total_count
).
Campo | Descrizione |
---|---|
total_count unsigned int32 | Total count |
Errore | Descrizione |
---|---|
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
.Parametro | Descrizione |
---|---|
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 Obbligatorio |
user UID | Business user ID Obbligatorio |
success
: bool, Errore | Descrizione |
---|---|
100 | Invalid parameter |
200 | Permissions error |
/{whats_app_business_account_id}/assigned_users
.Parametro | Descrizione |
---|---|
user UID | Business user ID Obbligatorio |
success
: bool, Errore | Descrizione |
---|---|
100 | Invalid parameter |