Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
africastalking
Advanced tools
Official AfricasTalking node.js API wrapper
Goal: Simple, easy to use (and to upgrade) API that covers all the features provided by Africa's Talking
var options = {
apiKey: 'fb752d3417021812f0961y6c9464832dd1adb1e555c73f1e7c32bcc006488674',
username: 'salama'
format: 'json' // or xml
};
var AfricasTalking = require('africastalking')(options);
// ...
var sms = AfricasTalking.SMS;
// all methods return a promise
sms.send(opts)
.then(success)
.catch(error);
send(options)
: Send a message. options
contains:
to
: An array of recipients. REQUIRED
from
: Shortcode or alphanumeric ID that is registered with Africa's Talking account.message
: SMS content. REQUIRED
sendBulk(options)
: Send bulk SMS. In addition to paramaters of send()
, we would have:
enqueue
: "[...] would like deliver as many messages to the API before waiting for an Ack from the Telcos."sendPremium(options)
: Send premium SMS. In addition to paramaters of send()
, we would have:
keyword
: Value is a premium keyword REQUIRED
linkId
: "[...] We forward the linkId
to your application when the user send a message to your service" REQUIRED
retryDurationInHours
: "It specifies the number of hours your subscription message should be retried in case it's not delivered to the subscriber"You can register a callback URL with us and we will forward any messages that are sent to your account the moment they arrive. Read more
fetchMessages(options)
:
lastReceivedId
: "This is the id of the message that you last processed". Defaults to 0
. REQUIRED
If you have subscription products on your premium SMS short codes, you will need to configure a callback URL that we will invoke to notify you when users subscribe or unsubscribe from your products. Read more
createSubscription(options)
:
shortCode
: "This is a premium short code mapped to your account". REQUIRED
keyword
: "Value is a premium keyword under the above short code and mapped to your account". REQUIRED
phoneNumber
: "The phoneNumber to be subscribed" REQUIRED
fetchSubscription(options)
:
shortCode
: "This is a premium short code mapped to your account". REQUIRED
keyword
: "Value is a premium keyword under the above short code and mapped to your account". REQUIRED
lastReceivedId
: "ID of the subscription you believe to be your last." Defaults to 0
var voice = AfricasTalking.VOICE;
xml
to send back to Africa's Taking API when it comes POST
ing. Read more
Say
, Play
, GetDigits
, Dial
, Record
, Enqueue
, Dequeue
, Conference
, Redirect
, Reject
var ussd = AfricasTalking.USSD;
text/plain
data to send back to Africa's Taking API when it comes calling. Read moreAfricasTalking.fetchAccount()
.then(success)
.catch(error);
fetchAccount()
: Fetch account info; i.e. balancevar airtime = AfricasTalking.AIRTIME;
send(options)
: Send airtime
recipients
: An array of the following
phoneNumber
: Receipient of airtime
amount
: Amount sent. >= 10 && <= 10K
FAQs
Official AfricasTalking node.js API wrapper
The npm package africastalking receives a total of 4,332 weekly downloads. As such, africastalking popularity was classified as popular.
We found that africastalking demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.