appwrite/docs/examples/1.7.x/server-nodejs/examples/messaging/create-msg91provider.md

18 lines
579 B
Markdown
Raw Normal View History

2025-05-17 14:28:12 +00:00
const sdk = require('node-appwrite');
const client = new sdk.Client()
.setEndpoint('https://<REGION>.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 sdk.Messaging(client);
const result = await messaging.createMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
false // enabled (optional)
);