Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
amazon_seller_central
Advanced tools
This gem wraps Amazon's SellerCentral pages with a Ruby API. Currently this gem supports accessing buyer feedback, accessing current inventory listings, and simple updates to those listings.
You need to require the gem and then provide the email address and
password you use to login to Amazon SellerCentral via the
AmazonSellerCentral.configure
method:
require 'amazon_seller_central'
AmazonSellerCentral.configure do |config|
config.login_email "seller@mydomain.com"
config.login_password "secret"
end
After configuration, the easiest way to access your feedback is using the block form:
AmazonSellerCentral::FeedbackPage.each_page do |page|
feedbacks = page.feedbacks
feedback = feedbacks.first
feedback.arrived_on_time # true, false, or nil
feedback.comments # The feedback left ("Excellent transaction!")
feedback.customer_service # true, false, or nil
feedback.date # A Time object
feedback.item_as_described # true, false, or nil
feedback.order_id # An Amazon Order ID, like 123-1234567-1234567
feedback.rater_email # something_scrambled@marketplace.amazon.com
feedback.rater_role # typically "Buyer"
feedback.rating # an integer, 1 - 5
end
You can access current inventory in much the same way as feedback:
AmazonSellerCentral::Inventory.each_page do |page|
listings = page.listings
listing = listings.first
listing.sku # <Your sku for this listing>
listing.asin # An ASIN, e.g. B003962DXE
listing.product_name # The name of the product
listing.created_at # a Time object representing when you created this listing
listing.quantity # an integer
listing.condition # "New" or "Used - Very Good" or whichever
listing.price_cents # an integer of cents. listing.price is also available to get dollars
listing.status # "Open", "Closed (Out of Stock)", or "Incomplete"
end
Currently this gem supports updating a listing you've already created via the web interface or some other API. Future versions may include creating listing entries from scratch.
To update a listing, you use ListingPage#apply_listings
, like so:
# alternately get a page inside the 'each_page' method above
page = AmazonSellerCentral::Inventory.load_first_page
# Updating a listing for my sku, "PR6902-2":
listing = page.listings.find("PR6902-2")
listing.quantity = 10
listing.price_cents = 1599
# Note the array syntax here allows you to update multiple listings
# on this page at the same time.
page.apply_listings([listing])
Copyright (c) 2011 Optoro, Inc. See LICENSE.txt for further details.
FAQs
Unknown package
We found that amazon_seller_central 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.