
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
DirectSms is a wrapper for using the api offered by directsms.com.au. The complete documentation can be downloaded here: http://www.directsms.com.au/api/HTTP_API.pdf
Add this line to your application's Gemfile:
gem 'direct_sms'
And then execute:
$ bundle
Or install it yourself as:
$ gem install direct_sms
To start using DirectSms, you'll need a username and a password. If you read the directsms docs, they support passing a connectionid as well. This is not supported for now.
To get your account's balance, simply:
sms = DirectSms::Message.new(username, password)
response = sms.balance
response.body # -> credits: 300.00
To send an sms, you need to set the ff. attributes:
message - The content of your sms message
type - Only accepts two values; "1-way" & "2-way"
to - The recipient/s of the message
message_id - A unique identifier for the message. Used for tracking the reply of the receiver.
sender_id - Used for 1-way sms sending
sms = DirectSms::Message.new(username, password)
sms.message = "Hello, world!"
sms.type = "2-way" # -> enables the receiver to reply
sms.to = "+639919302930" # -> to send to multiple recipients, use "," as delimiter.
sms.messageid = "<id>"
sms.send_message
If you've found any errors on the documentation as well as the code, feel free to contact me on my email.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that direct_sms 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.