@mystogab/paapi5-aws4
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@mystogab/paapi5-aws4

Amazon PAAPI v5 with AWS signature v4

This is a WIP up-to-date implementation of Amazon Product API v5 with signing version 4

Up-to-date PAAPIv5 implementation

Status:

Feature Status Implemented in
BROWSENODE -> GetBrowseNodes ⚠️ In Progress...
ITEM -> GetVariations ⚠️ In Progress...
ITEM -> GetItems ✅ Implemented v0.1.0
ITEM -> SearchItems ⚠️ In Progress...

Requirements

  • NodeJS > 18
  • ESM and CJS available it should work in boths systems

Installation

npm:

npm i @mystogab/paapi5-aws4

pnpm:

pnpm add @mystogab/paapi5-aws4

bun:

bun add @mystogab/paapi5-aws4

Getting Started

Simple example of GetItem images:

import { getItems } from '@mystogab/paapi5-aws4';

const credentials = {
    accessKey: 'AKIAYOURACCESSKEU',
    secretKey: 'UAYOURseocbnvousebcobes/secret',
    partnerTag: 'awesome-tag'
};

const resources = [
    'Images.Primary.Small',
    'Images.Primary.Medium',
    'Images.Primary.Large',
    'Images.Primary.HighRes',
    'Images.Variants.Small',
    'Images.Variants.Medium',
    'Images.Variants.Large',
    'Images.Variants.HighRes'
];

const images = await getItems(credentials, 'B09MLRPTT2', resources);

Changelog

v0.1.2

  • feature: removed old crypto-js dependency
  • types: added resources typing for 'getItems'

v0.1.1

  • fix: doc typos
  • add CJS and ESM compatibility
  • updated docs

Package Sidebar

Install

npm i @mystogab/paapi5-aws4

Weekly Downloads

2

Version

0.1.2

License

AGPL-version-3.0

Unpacked Size

18.6 kB

Total Files

10

Last publish

Collaborators

  • mystogab