Sends message to one destination
npx @superfaceai/cli install communication/send-message
const { SuperfaceClient } = require('@superfaceai/one-sdk');
const sdk = new SuperfaceClient();
async function run() {
// Load the installed profile
const profile = await sdk.getProfile('communication/send-message');
// Use the profile
const result = await profile
.getUseCase('SendMessage')
.perform({
destination: 'C1H9RESGL',
text: 'Our app has 1,000,000 subscribers!'
});
return result.unwrap();
}
run();
Switching providers Learn how to use automatic failover or switch between providers manually.
Missing your favorite provider? Tell us which provider you'd like to use.