@digitregroup/myelefant-client
v1.0.1
Published
MyElefant Client is a library for sending sms via MyElefant api.
Downloads
37
Keywords
Readme
MyElefant Client
MyElefant Client is a library for sending sms via MyElefant api.
Installation
npm install @digitregroup/myelefant-client
Usage
const { MyElefant } = require('@digitregroup/myelefant-client');
const apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
const campaignUuid = 'xxxxxxx-xxx-xxx-xxx-xxxxxxxxxx';
(async () => {
const result = await MyElefant
.buildClient(apiKey, campaignUuid)
.sendSms([
{ phoneNumber: '33601010101', content: 'Test #1' },
{ phoneNumber: '33602020202', content: 'Test #2' },
]);
console.log('Result:', result);
})()
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.