It all started as a pet project, I know you understand me.
But rapidly it became more like a developer need: to have something that works as you want it to, something you could share with other developers and be proud of it because, damn, you’ve just became part of an amazing ecosystem called Open Source!
I was finding myself in the need of using the plain JS SDK of Amazon’s Product Advertising API, link here, but it was barely usable, with a lot of conventions, zero explicitness and a whole set of unreadable code.
Maybe it’s just me but in the past year I’ve started to appreciate when you jump into a project and you can understand easily how things get passed around. I needed Typescript.
There was little to no libraries as I expect them to be and finally I came to one conclusion: I needed to do it myself.
And I did it! 👇⭐️
Unofficial TypeScript SDK for Product Advertising API 5.0
In order to install this SDK, you just have to run you well-known
npm i -S paapi5-typescript-sdk
yarn add paapi5-typescript-sdk
And there you go! Enjoy
Everything is exported from the SDK: requests' classes, models, utility types, helper and so on..
If you want to import everything
import * as SDK from 'paapi5-typescript-sdk';
And use what you need later
const request = new SDK.SearchItemsRequest(/* ... */);
You can refer to the Amazon Product Advertising API 5.0 for further details about every request
In order to validate all the requests against the APIs, I've implemented almost from scratch the AWS V4 signing process, creating the
This is intended for interal use, but if you want to use it for other purposes, here you can…
This is a small project but a whole set of TS is involved and needs to be maintained ⚙️
This is my first time being the author of an Open Source repository so any feedback and proposal is welcome 🙏
If you are just lazy, leave a GitHub ⭐️ and a 🦄 here, it would be enough for me!
Thanks for reading!