2.2.1 • Published 10 months ago

affiliate-linker v2.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Amazon Affiliate Link Builder

Package for generating Amazon affiliate links easily.

Installation

npm i affiliate-linker;

Usage

Import package:

import AffiliateLinker from "affiliate-linker";

Init and set amazon associate Ids:

const AZ_ES = "your-amzid-spain";
const AZ_US = "your-amzid-us";
const AZ_GB = "your-amzid-uk";
const AZ_FR = "your-amzid-france";
const AZ_DE = "your-amzid-germany";
const AZ_IT = "your-amzid-italy";
const AZ_SE = "your-amzid-sweden";
const associateIds = { AZ_ES, AZ_US, AZ_GB, AZ_FR, AZ_DE, AZ_IT, AZ_SE };

AffiliateLinker.init(associateIds);

Get ad data (using the best amazon domain for your user):

const ASIN = "B005C9WDUO";
const adData = await AffiliateLinker.generateAffiliateLink(ASIN);
2.2.1

10 months ago

2.2.0

11 months ago

2.1.0

11 months ago

2.0.1

11 months ago

2.0.0

11 months ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago