mirror of
https://github.com/appwrite/appwrite
synced 2026-05-20 23:48:23 +00:00
659 B
659 B
const sdk = require('node-appwrite');
const client = new sdk.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 sdk.Messaging(client);
const result = await messaging.updateApnsProvider( '<PROVIDER_ID>', // providerId '', // name (optional) false, // enabled (optional) '<AUTH_KEY>', // authKey (optional) '<AUTH_KEY_ID>', // authKeyId (optional) '<TEAM_ID>', // teamId (optional) '<BUNDLE_ID>', // bundleId (optional) false // sandbox (optional) );