
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Ruby library for interfacing with the Carousel Fulfillment API
Add this line to your application's Gemfile:
gem 'carousel-ruby-api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install carousel-ruby-api
Send order request
order = {
shipping_address: {
first_name: "John",
last_name: "Smith",
address1: "123 Here Now",
address2: "2nd Floor",
city: "New York",
country: "US",
zipcode: "10012",
phone: "123-123-1234"
},
billing_address: {
first_name: "John",
last_name: "Smith",
address1: "123 Here Now",
address2: "2nd Floor",
city: "New York",
state: "NY",
country: "US",
zipcode: "10012",
phone: "123-123-1234"
},
number: "R123123123",
orderdate: "2014-06-16",
line_items: [
{
price: "127.23",
quantity: "1",
sku: "123332211"
}
],
gift_message: "Happy B-Day!"
shipping_method: "next-day", # or "express" or "standard"
shipping_cost: "20.00",
invoice_url: "http://example.com/R123123123/invoice"
}
client = Carousel::Client.new("username", "password")
response = client.send_order_request(order)
if response.success?
# DO SOMETHING
else
# QUEUE REQUEST, STORE AND RAISE ERRORS
end
Get inventory
client = Carousel::Client.new("username", "password")
inventory = client.get_inventory
inventory.each do |stock|
...
end
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that carousel-ruby-api 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.