1
0
Fork 0
mirror of synced 2024-06-01 10:29:48 +12:00
appwrite/docs/examples/1.5.x/console-web/examples/messaging/create-msg91provider.md
2024-03-21 17:22:55 -07:00

549 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.createMsg91Provider( '<PROVIDER_ID>', // providerId '', // name '<TEMPLATE_ID>', // templateId (optional) '<SENDER_ID>', // senderId (optional) '<AUTH_KEY>', // authKey (optional) false // enabled (optional) );

console.log(response);