appwrite/docs/examples/1.5.x/console-web/examples/messaging/create-vonage-provider.md
2024-02-25 00:34:42 +13:00

543 B

import { Client, Messaging } from "@appwrite.io/console";

const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID

const messaging = new Messaging(client);

const result = await messaging.createVonageProvider( '<PROVIDER_ID>', // providerId '', // name '+12065550100', // from (optional) '<API_KEY>', // apiKey (optional) '<API_SECRET>', // apiSecret (optional) false // enabled (optional) );

console.log(response);