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:
| Clave | Descripció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.
Ejecute su código
Guarde este archivo en su máquina y ejecútelo:
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.
Crea un archivo llamado get-member.js y añade el siguiente código:
Ejecute su código
Guarde este archivo en su máquina y ejecútelo:
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.
Añada lo siguiente a build.gradle:
Crea un archivo llamado GetMember y añade el siguiente código al método main:
Ejecute su código
Podemos utilizar el plugin aplicación para Gradle para simplificar la ejecución de nuestra aplicación. Actualiza tu build.gradle con lo siguiente:
Ejecute el siguiente comando gradle para ejecutar su aplicación, sustituyendo com.vonage.quickstart.conversation por el paquete que contiene GetMember:
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.
Crea un archivo llamado GetMember.cs y añade el siguiente código:
Añada lo siguiente a GetMember.cs:
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.
Crea un archivo llamado get-member.php y añade el siguiente código:
Ejecute su código
Guarde este archivo en su máquina y ejecútelo:
Pruébalo
Cuando ejecute el código obtendrá el Miembro especificado.