Obtener el perfil de los Numbers de WABA

Utilice este punto final para recuperar los detalles del perfil de un Numbers específico asociado a una WhatsApp Business Account (WABA) mediante Channel Manager API.

Ejemplo

A continuación encontrará la descripción de todas las variables utilizadas en cada fragmento de código:

ClaveDescripción
CHANNEL_MANAGER_WABA_ID

The waba_id of the WhatsApp Business Account (WABA) for which to retrieve the template analytics data.

CHANNEL_MANAGER_WABA_NUMBER

The whatsapp_number for which to retrieve the profile details.

VONAGE_API_KEY

Your Vonage API key (see it on your dashboard).

VONAGE_API_SECRET

Your Vonage API secret (also available on your dashboard).

Requisitos previos

Si no tiene una solicitud, puede crear uno. Asegúrese también de configure sus webhooks.

Escriba el código

Añada lo siguiente a get-waba-number-profile.sh:

curl -G https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/${CHANNEL_MANAGER_WABA_ID}/numbers/${CHANNEL_MANAGER_WABA_NUMBER}/profile \
  -u "${VONAGE_API_KEY}:${VONAGE_API_SECRET}" \
  -H 'Accept: application/json' \

Ver fuente completa

Ejecute su código

Guarde este archivo en su máquina y ejecútelo:

bash get-waba-number-profile.sh