-
-
Save infobipdev/ab723c179da71f77a690d27c74cdf7b2 to your computer and use it in GitHub Desktop.
Send basic SMS message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
const infobipResponse = await infobipClient.channels.sms.send({ | |
type: 'text', | |
messages: [{ | |
destinations: [ | |
{ | |
to: '447123456789', | |
}, | |
], | |
from: 'Infosum SDK Test', | |
text: 'Hello World', | |
}], | |
}); | |
} catch (error) { | |
console.error(error); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment