Una aplicación API de Vonage contiene la información de seguridad y configuración que necesitas para conectarte a los puntos finales de Vonage y usar las API de Vonage. Cada aplicación de Vonage creada puede admitir múltiples capacidades. Por ejemplo, puedes crear una aplicación que admita el uso de las API de voz, mensajes y RTC.
Puedes usar la CLI de Vonage para crear y administrar tus aplicaciones, agregar nuevas capacidades y actualizar la información de configuración de tu webhook.
Creación de una aplicación
En vonage apps create <name> permite crear una aplicación. Debe introducir un nombre de aplicación, ya que la CLI no lo generará por usted.
El comando tiene las siguientes banderas:
Nota: si no proporcionas tu propia clave, Vonage creará una para ti. Sin embargo, si no guardas la clave cuando se crea la aplicación, no podrás volver a acceder a ella. Tendrás que volver a generar la clave si la pierdes.
Por defecto, cuando se ejecuta vonage apps ejecutará el mismo subcomando que vonage apps list. Hay una serie de banderas
que puede pasar para refinar su búsqueda:
vonage apps✅ Loading applications... DoneApp ID Name Capabilities------------------------------------ ------------------ ------------------------------------------------------00000000-0000-0000-0000-000000000000 Application None00000000-0000-0000-0000-000000000000 voice Application Messages, Voice00000000-0000-0000-0000-000000000000 All enabled Messages, Network APIs, RTC, VBC, Verify, Video, Voice
Mostrar detalles de la aplicación
En show subcomando le permite obtener los detalles de una aplicación específica. El formato del comando es
vonage apps show <id>donde <id> es el UUID de la aplicación.
Nota: Esto no mostrará la clave pública. Si necesita ver la clave pública, puede utilizar la función --show-all, --jsono --yaml banderas,
que no redactará ninguna información.
vonage apps show 00000000-0000-0000-0000-000000000000✅ Fetching applicationName: All enabledApplication ID: 00000000-0000-0000-0000-000000000000Improve AI: OffPrivate/Public Key: SetCapabilities: VOICE: Uses Signed callbacks: On Conversation TTL: 41 hours Leg Persistence Time: 6 days Event URL: [GET] https://example.com/voice/event Answer URL: [GET] https://example.com/voice/answer Fallback URL: [GET] https://example.com/voice/fallback MESSAGES: Authenticate Inbound Media: On Webhook Version: v1 Status URL: [POST] https://example.com/meetings/status Inbound URL: [POST] https://example.com/meetings/inbound VERIFY: Webhook Version: v2 Status URL: [POST] https://example.com/verify2/status RTC: Event URL: [POST] https://example.com/rtc/event Uses Signed callbacks: On VIDEO: Archive Status URL: [POST] https://example.com/video/archive-status Archive Status Signature Secret: archive status Broadcast Status URL: [POST] https://example.com/video/broadcast-status Broadcast Status Signature Secret: broadcast status Caption Status URL: [POST] https://example.com/video/caption-status Caption Status Signature Secret: caption-status Connection Created URL: [POST] https://example.com/video/connected-created Connection Created Signature Secret: connection created Connection Destroyed URL: [POST] https://example.com/video/connection-destroyed Connection Destroyed Signature Secret: connection destroyed Render Status URL: [POST] https://example.com/video/render-status Render Status Signature Secret: render status SIP Call Created URL: [POST] https://example.com/video/sip1 SIP Call Created Signature Secret: Off SIP Call Destroyed URL: [POST] https://example.com/video/sip3 SIP Call Destroyed Signature Secret: Off SIP Call Mute Forced URL: [POST] https://example.com/video/sip4 SIP Call Mute Forced Signature Secret: Off SIP Call Updated URL: [POST] https://example.com/video/sip2 SIP Call Updated Signature Secret: Off Stream Created URL: [POST] https://example.com/video/stream-created Stream Created Signature Secret: stream created Stream Destroyed URL: [POST] https://example.com/video/stream-destroyed Stream Destroyed Signature Secret: stream destroyed RECORDINGS STORAGE: Cloud Storage: On Storage Type: AmazonS3 Credential: manchuck_aws_bucket End to End Encryption: On Server Side Encryption: On NETWORK APIS: Redirect URL: [GET] https://example.com/gnp/redirect NB: VBC capabilities is not supported through the command line.
Actualizar una solicitud
vonage apps update <id> le permite actualizar el nombre de una aplicación existente, cambiar la configuración de Mejorar IA o establecer una nueva clave pública: