@vonage/vcr-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Vonage Cloud Runtime SDK for Node.js

This is the Node.JS SDK for Vonage Cloud Runtime. To use it you will need a Vonage account. Sign up for free at vonage.com.

For full documentation refer to developer.vonage.com.

Installation

To install the SDK run:

npm install @vonage/vcr-sdk

Usage

The Vonage Cloud Runtime SDK gives you access to providers which help you build powerful communication applications with Vonage. As an example here is how you can listen for incoming calls to your Vonage Application with the Voice provider:

import { Voice, vcr } from '@vonage/vcr-sdk';

const session = vcr.createSession();
const voice = new Voice(session);

await voice.onCall('onCall');

app.post('/onCall', async (req, res, next) => {
    const ncco = [
        {
            action: 'talk',
            text: "Hi from Vonage!",
        }
    ];
    res.json(ncco);
});

Get Started

The Vonage Cloud Runtime SDK has been designed for use with the Vonage Cloud Runtime Marketplace. There you will find prebuilt solutions to common communication workflows with Vonage, where you can try them out and edit them to fit your use case. Once finished, you can deploy the application and let Vonage manage the hosting for you.

/@vonage/vcr-sdk/

    Package Sidebar

    Install

    npm i @vonage/vcr-sdk

    Weekly Downloads

    11,129

    Version

    1.3.0

    License

    none

    Unpacked Size

    892 kB

    Total Files

    1460

    Last publish

    Collaborators

    • mprabhu1
    • gpojula
    • omrizilber
    • elimenko.vonage
    • thealmoggvonage
    • saurabh.vonage
    • aviadhouri.va
    • daniel-sapir
    • llihovodov
    • tabdullah
    • jmoramunoz2
    • sailusha
    • hilakl
    • leppelin
    • molszewski_v
    • twilliams253
    • abolles
    • lallen2
    • yonatan.kra
    • jtiet
    • vonage-frontier
    • vonage_client_media_processing
    • or.cpc
    • jeffswartz
    • deliajolt
    • javiermolsanz
    • v-kpheng
    • vgai-dev
    • web-il
    • iceberg-team
    • unified_portal
    • vreporter-npm
    • vbcbe
    • voxip_team
    • yuri.guller
    • idanvon
    • nexmo-devrel
    • vvd
    • vonagemeetings
    • vonage-jenkins
    • maikthomas
    • arivonage