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.
@datafire/thesmsworks
Advanced tools
Client library for The SMS Works API
npm install --save @datafire/thesmsworks
let thesmsworks = require('@datafire/thesmsworks').create({
JWT: ""
});
.then(data => {
console.log(data);
});
The SMS Works provides a low-cost, reliable SMS API for developers. Pay only for delivered texts, all failed messages are refunded.
Utility method. Please generate your API key by following the instructions on your account page at https://thesmsworks.co.uk/user/login
thesmsworks.keySecret({
"customerid": ""
}, context)
object
string
: Utility method. Please generate your API key by following the instructions on your account page at https://thesmsworks.co.uk/user/loginGenerates a JSON Web Token for including in the Authorization header of all your calls to the API. This only needs to be done once. Generate the customer ID, API Key & Secret required for this call from the API Key tab your account page.
thesmsworks.login({
"credentials": null
}, context)
object
Schedules a batch of SMS messages to be sent at the date time you specify
thesmsworks.scheduleBatch({
"smsMessage": null
}, context)
object
Send a single SMS message to multiple recipients
thesmsworks.sendBatch({
"smsMessage": null
}, context)
object
Retrieve all messages in a batch with the given batch ID
thesmsworks.getBatchById({
"batchid": ""
}, context)
object
string
: The ID of the batch you would like returnedarray
Cancels a scheduled SMS message
thesmsworks.cancelScheduledBatchJob({
"batchid": ""
}, context)
object
string
: The ID of the batch you would like returnedReturns the number of credits currently available on the account
thesmsworks.credits(null, context)
This action has no parameters
Sends an SMS flash message, which appears on the recipients lock screen
thesmsworks.sendFlashMessage({
"smsMessage": null
}, context)
object
Schedules an SMS message to be sent at the date-time you specify
thesmsworks.scheduleMessage({
"smsMessage": null
}, context)
object
Sends an SMS message
thesmsworks.message.send.post({
"smsMessage": null
}, context)
object
Get messages matching your search criteria
thesmsworks.getMessages({
"query": null
}, context)
object
array
Get failed messages matching your search criteria
thesmsworks.getFailedMessages({
"query": null
}, context)
object
array
Get unread uncoming messages matching your search criteria
thesmsworks.getInboxMessages({
"query": null
}, context)
object
array
Cancels a scheduled SMS message
thesmsworks.cancelScheduledJob({
"messageid": ""
}, context)
object
string
: The ID of the message you would like returnedRetrieve a logged message by the message ID
thesmsworks.getMessageById({
"messageid": ""
}, context)
object
string
: The ID of the message you would like returnedReturns a sample error object for the given error code. Useful for designing code to react to errors when they occur for real.
thesmsworks.getError({
"errorcode": ""
}, context)
object
string
: The code of the error you would like returnedReturns the customer ID to the caller
thesmsworks.test(null, context)
This action has no parameters
object
: SMS Message Batch
string
: Message to send to the recipientstring
: The url to which we should POST delivery reports to for this message. If none is specified, we'll use the global delivery report URL that you've configured on your account page.array
: Telephone numbers of each of the recipients
string
string
: Date-time at which to send the batch. This is only used by the batch/schedule service.string
: The sender of the message. Should be no longer than 11 characters for alphanumeric or 15 characters for numeric sender ID's. No spaces or special characters.string
: An identifying label for the message, which you can use to filter and report on messages you've sent later. Ideal for campaigns. A maximum of 280 characters.number
: The number of minutes before the message is deleted. Optional. Omit to prevent delivery report deletion. Integer.object
string
string
object
string
string
object
number
: The number of remaining credits on your SMS Works account. Floating point number.object
string
string
number
: Numeric code used to identify the error. Integer.boolean
string
object
: authorisation object
string
: Your customer ID, available from your account area at https://thesmsworks.co.uk/user/loginstring
: API Key, available from your account area at https://thesmsworks.co.uk/user/loginstring
: API Secret, available from your account area at https://thesmsworks.co.uk/user/loginobject
: SMS message object
string
: Message to send to the recipient. Content can be up to 1280 characters in length. Messages of 160 characters or fewer are charged 1 credit. If your message is longer than 160 characters then it will be broken down in to chunks of 153 characters before being sent to the recipient's handset, and you will be charged 1 credit for each 153 characters. Messages sent to numbers registered outside the UK will be typically charged double credits, but for certain countries may be charged fractions of credits (e.g. 2.5). Please contact us for rates for each country.string
: The url to which we should POST delivery reports to for this message. If none is specified, we'll use the global delivery report URL that you've configured on your account page.string
: Telephone number of the recipientarray
object
array
: An optional list of email addresses to forward responses to this specific message to. An SMS Works Reply Number is required to use this feature.
string
string
: Date at which to send the message. This is only used by the message/schedule service and can be left empty for other services.string
: The sender of the message. Should be no longer than 11 characters for alphanumeric or 15 characters for numeric sender ID's. No spaces or special characters.string
: An identifying label for the message, which you can use to filter and report on messages you've sent later. Ideal for campaigns. A maximum of 280 characters.number
: The optional number of minutes before the message is deleted. Optional. Omit to prevent delivery report deletion. Integer.object
string
string
string
string
string
number
object
number
: Numeric code that defines the error. Integer.string
boolean
string
string
string
string
string
string
string
string
string
object
: Key/value pair that will be returned to you in the API call response.
string
: key of the key/value pairstring
: value of the key/value pairobject
: search parameters for querying the message database
number
: The number of credits used on the message. Floating point number.string
: The phone number of the recipient. Start UK numbers with 44 and drop the leading 0.string
: The date-time from which you would like matching messagesstring
: The keyword used in the inbound messagearray
: An array of objects containing metadata key/value pairs that have been saved on messages.
object
string
: The sender of the message (this can be the configured sender name for an outbound message or the senders phone number for an inbound message).string
: The status of the messages you would like returned (either 'SENT', 'DELIVERED', 'EXPIRED', 'UNDELIVERABLE', 'REJECTED' or 'INCOMING')string
: The date-time to which you would like matching messagesboolean
: In queries for incoming messages ('status' is 'INCOMING'), specify whether you explicitly want unread messages (true) or read messages (false). Omit this parameter in other circumstances.object
string
string
object
string
string
object
number
: The number of remaining credits on your SMS Works account. Floating point number.number
: The number of credits used to send the message. Floating point number.string
string
object
string
object
string
object
string
string
FAQs
DataFire integration for The SMS Works API
We found that @datafire/thesmsworks 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.
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.