Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

de.kevcodez.amazon:stock

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

de.kevcodez.amazon:stock

Kotlin library to retrieve the current stock from an amazon article using Product Advertising API

  • 0.1.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Amazon Stock

This library allows retrieving the current stock from an amazon offer.

Maven metadata URI Build Status GitHub license

Getting started

Maven

<dependency>
    <groupId>de.kevcodez.amazon</groupId>
    <artifactId>stock</artifactId>
    <version>0.1.0</version>
</dependency>

Gradle

compile "de.kevcodez.amazon:stock:0.1.0"

Example

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)]

How does it work?

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.

Getting API access

Go to Sign up for the Product Advertising API and get your access token/secret key.

FAQs

Package last updated on 07 Jul 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc