0.0.4 • Published 3 years ago

simple-affiliate v0.0.4

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

simple-affiliate

Library to interact with SimpleAffiliate (Shopify plugin) APIs

Supported Functionality

  • Creation of AffiliateLinks

Installation

Via NPM:

npm install simple-affiliate

Usage

const SimpleAffiliate = require('simple-affiliate');
const simpleAffiliate = new SimpleAffiliate("AUTH_TOKEN");
const jsonResult = await simpleAffiliate.createAffiliateLink();

createAffiliateLink(targetLink)

Return the payload from the SimpleAffiliate web page.

NOTE: Will need to manually inspect jsonResult.authData.linkRows for the affiliate link. E.g.

const affiliateLinks = json.authData.linkRows.filter(row => row.targetPath == targetLink);
0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago