0.1.2 • Published 6 months ago

@mystogab/paapi5-aws4 v0.1.2

Weekly downloads
-
License
AGPL-version-3.0
Repository
github
Last release
6 months ago

@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:

FeatureStatusImplemented in
BROWSENODE -> GetBrowseNodes:warning: In Progress...
ITEM -> GetVariations:warning: In Progress...
ITEM -> GetItems:white_check_mark: Implementedv0.1.0
ITEM -> SearchItems:warning: 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
0.1.2

6 months ago

0.1.1

7 months ago

0.1.0

7 months ago