
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
messente_api
Advanced tools
Send and receive SMS, Viber, Telegram and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups.
Messente is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds tools to help organizations connect their services to people anywhere in the world.
Install Messente API library with npm install messente_api --save
.
Messente API has the following features:
Messente API Library provides the operations described below to access the features.
getAccountBalance
getAccountBalanceUsingPost
addToBlacklist
deleteFromBlacklist
fetchBlacklist
isBlacklisted
sendBulkOmnimessage
addContactToGroup
createContact
deleteContact
fetchContact
fetchContactGroups
fetchContacts
removeContactFromGroup
updateContact
retrieveDeliveryReport
createGroup
deleteGroup
fetchGroup
fetchGroups
updateGroup
fetchInfo
verifyNumber
verifyPin
cancelScheduledMessage
sendOmnimessage
getPricelist
getPrices
createStatisticsReport
createWhatsappTemplate
deleteWhatsappTemplate
getWhatsappTemplateById
listWhatsappTemplates
updateWhatsappTemplate
Type: HTTP basic authentication
Read the external getting-started article which explains API keys and Sender ID logic.
const MessenteApi = require('messente_api');
const defaultClient = MessenteApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
const basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR_MESSENTE_API_USERNAME';
basicAuth.password = 'YOUR_MESSENTE_API_PASSWORD';
const api = new MessenteApi.OmnimessageApi();
const viber = MessenteApi.Viber.constructFromObject({
text: 'Hello Viber!',
sender: 'Messente',
});
const sms = MessenteApi.SMS.constructFromObject({
text: 'Hello SMS!',
});
const whatsAppParameters = [MessenteApi.WhatsAppParameter.constructFromObject({type: 'text', text: 'hello whatsapp'})];
const whatsAppComponent = MessenteApi.WhatsAppComponent.constructFromObject({type: 'body', parameters: whatsAppParameters});
const whatsAppTemplate = MessenteApi.WhatsAppTemplate.constructFromObject({
name: '<template_name>',
language: new MessenteApi.WhatsAppLanguage(code='<language_code>'),
components: [whatsAppComponent],
});
const whatsapp = MessenteApi.WhatsApp.constructFromObject({
sender: "<sender name (optional)>",
template: whatsAppTemplate,
});
const omnimessage = MessenteApi.Omnimessage.constructFromObject({
messages: [whatsapp, viber, sms],
to: '<recipient_phone_number>',
});
api.sendOmnimessage(omnimessage, (error, data) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ', data);
}
});
FAQs
Send and receive SMS, Viber, Telegram and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups.
The npm package messente_api receives a total of 2,692 weekly downloads. As such, messente_api popularity was classified as popular.
We found that messente_api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.