affilinet
wraps some php code that talks to the affilinet soap webservices
this is very early work in progress
Install
npm install affilinet
Use
Affilinet = require 'affilinet' affilinet = publisherId: '...' productWebservicePassword: '...' publisherWebservicePassword: '...' affilinetgetShops throw err if err? consolelog shops
API
-
getShops(cb)
callscb
with an array of shop objects:- number
ShopId
- string
ShopLink
that is the link to the landing page of the shop - string
ShopTitle
- string
LastUpdate
- object
Logo
- number
Height
- number
Width
- string
LogoScale
- string
URL
that is the url of the logo
- number
- number
ProductCount
- number
ProgramId
that is the id of the programs this shop belongs to
- number
-
getPrograms(displayOptions, query, cb)
-
displayOptions
- required number
CurrentPage
- required number
PageSize
- string
SortByEnum
- one of:
ProgramId
ProgramTitle
ProgramLifetime
- default is
ProgramId
- one of:
- string
SortOrderEnum
- one of:
Ascending
Descending
- default is
Ascending
- one of:
- required number
-
query
- array of integer
ProgramIds
- string
SearchString
- required array of string
PartnershipStatus
where each is one of:Active
Paused
Waiting
Refused
NoPartnership
Cancelled
- string
ProgramClassificationEnum
that is one of:All
Program
Campaign
- array of integer
ProgramCategoryIds
- array of string
TrackingMethods
where each is one of:Cookie
Session
SessionCookie
- array of string
SEMPolicyTypes
where each is one of:NotSet
Allowed
Restricted
NotAllowed
- integer
MinimumCookieLifetime
- integer
MaximumProgramLifetime
- array of integer
-
calls
cb
with an array of program objects:- number
ProgramId
- string
ProgramTitle
- string
Description
- string
Url
that is the url of the landing page for the program - string
LaunchDate
- string
PartnershipStatus
that is the current status of the partnership. possible values areNotApplied
Paused
Active
Cancelled
Declined
Waiting
- object
CommissionRates
- object
PayPerLead
- number
MinRate
- number
MaxRate
- number
- object
PayPerSale
- number
MinRate
- number
MaxRate
- number
- object
PayPerClick
- number
MinRate
- number
MaxRate
- number
- object
- string
Limitations
- number
-