Fully typed Partnerstack API sdk
Run the following command under your project
npm i partnerstack
First you need to initialize the parnerstack instance as the following
import { initializePartnerstack } from 'partnerstack';
intializeParnerstack({ apiKey: "Your_API_key", secretKey: "Your_Secret_key" });
Then you can call any method from the api
import { api } from 'partnerstack';
const deals = api.getAllDeals(); // will return an object with `hasMore` boolean and `items` containing every deal.
For further docs see Partnerstack Reference