Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
movile-messaging
Advanced tools
You will need your own UserName
and AuthenticationToken
to make API calls.
Note that most optional parameters are missing in this module, I'm working on it. PR's are welcome as well 😉
const Movile = require('movile-messaging');
const sms = new Movile('YOUR_USER_NAME', 'YOUR_AUTH_TOKEN');
sms.getStatus('9cb87d36-79af-11e5-89f3-1b0591cdf807')
.then(response => console.log(response.data)) // do something with this data
.catch(err => console.error(err)); // your error handling
res.render('index', { title: 'Movile Messaging Example' });
Send SMS message to a single endpoint.
destination
: Phone number with country code and area code. Example: '5519998765432'
messageText
: The message string to be sent. If it's too long, it will be split into multiple messages.Example:
sms.send('5519998765432', 'Your text here');
Expected response body:
{
"id":"9cb87d36-79af-11e5-89f3-1b0591cdf807"
}
Send the same SMS message to many endpoints at once.
numbers
: Array of phone numbers, just like destination
in the send
method.messageText
: The message string to be sent. If it's too long, it will be split into multiple messages.Example:
sms.sendBulk(['5519988887777', '5535989890000'], 'Your text here');
Expected response body:
{
"id":"317b925a-79b0-11e5-82d3-9fb06ba220b3",
"messages":[
{
"id":"715773da-79b0-11e5-afc8-dfdd0dedf87a"
},
{
"id":"717fb4bc-79b0-11e5-819e-57198aac792e"
}
]
}
Check the delivery status of a single message.
id
: ID of a message, obtained when it is sent.Example:
sms.getStatus('8f5af680-973e-11e4-ad43-4ee58e9a13a6');
Expected response body:
{
"id":"8f5af680-973e-11e4-ad43-4ee58e9a13a6",
"carrierId":5,
"carrierName":"TIM",
"destination":"5519900001111",
"sentStatusCode":2,
"sentStatus":"SENT_SUCCESS",
"sentStatusAt":1420732929252,
"sentStatusDate":"2015-01-08T16:02:09Z",
"deliveredStatusCode":4,
"deliveredStatus":"DELIVERED_SUCCESS",
"deliveredAt":1420732954000,
"deliveredDate":"2015-01-08T16:02:34Z",
"campaignId":1234
}
OI
carrier will not return DELIVERED_SUCCESS
status even if the SMS was successfully received.Special thanks to @mCodex
FAQs
Simple node.js wrapper for Movile's Messaging API
The npm package movile-messaging receives a total of 1 weekly downloads. As such, movile-messaging popularity was classified as not popular.
We found that movile-messaging demonstrated a not healthy version release cadence and project activity because the last version was released 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.