Files
appwrite/docs/examples/1.8.x/server-deno/examples/messaging/create-msg-91-provider.md
2025-08-26 15:40:03 +12:00

602 B

import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts";

const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key

const messaging = new Messaging(client);

const response = await messaging.createMsg91Provider({ providerId: '<PROVIDER_ID>', name: '', templateId: '<TEMPLATE_ID>', // optional senderId: '<SENDER_ID>', // optional authKey: '<AUTH_KEY>', // optional enabled: false // optional });