affilinet

simple interface to the affilinet api

affilinet

node wrapper for the affilinet php soap examples

this is very early work in progress

npm install affilinet
 
Affilinet = require 'affilinet'
 
affilinet = new Affilinet
    publisherId: '...'
    productWebservicePassword: '...'
    publisherWebservicePassword: '...'
 
affilinet.getShops (err, shops) ->
    throw err if err?
    console.log shops
 
    affilinet.getSalesForDayRange startDateendDate(err, sales) ->
        throw err if err?
        console.log sales