Hacerse socio

En este fragmento de código aprenderás a obtener un Miembro.

Ejemplo

Asegúrese de que las siguientes variables se ajustan a los valores requeridos utilizando cualquier método conveniente:

ClaveDescripción
CONVERSATION_ID

The ID of the Conversation.

MEMBER_ID

The unique ID of the Member.

Requisitos previos

You will need to use an existing Application that contains a Conversation and at least one Member in order to be able to get a Member. See the Create Conversation code snippet for information on how to create an Application and some sample Conversations.

Escriba el código

Añada lo siguiente a get-member.sh:

curl "https://api.nexmo.com/v1/conversations/$CONV_ID/members/$CONV_MEMBER_ID" \
     -H 'Authorization: Bearer '$JWT\
     -H 'Content-Type: application/json'

Ver fuente completa

Ejecute su código

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

bash get-member.sh

Pruébalo

Cuando ejecute el código obtendrá el Miembro especificado.