Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
de.kevcodez.amazon:stock
Advanced tools
Kotlin library to retrieve the current stock from an amazon article using Product Advertising API
This library allows retrieving the current stock from an amazon offer.
<dependency>
<groupId>de.kevcodez.amazon</groupId>
<artifactId>stock</artifactId>
<version>0.1.0</version>
</dependency>
compile "de.kevcodez.amazon:stock:0.1.0"
val stockService = StockService(
AmazonConfig(
endpoint = "webservices.amazon.de",
accessKeyId = "xxx",
secretKey = "yyy",
associateTag = "<your-associate-tag>"
)
)
val stock = stockservice.getStockInformation(listOf("B01BPJK4S2"))
println(stock)
[StockInformation(price=12.9, stock=9, asin=B01BPJK4S2)]
To retrieve the stock, an API call to the Product Advertising API is done. By entering an usually high amount of 999 as requested stock during a CartCreate-Call, the available stock is returned.
Go to Sign up for the Product Advertising API and get your access token/secret key.
FAQs
Kotlin library to retrieve the current stock from an amazon article using Product Advertising API
We found that de.kevcodez.amazon:stock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.