affilinet

0.0.5 • Public • Published

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 = new Affilinet
    publisherId: '...'
    productWebservicePassword: '...'
    publisherWebservicePassword: '...'
 
affilinet.getShops (err, shops) ->
    throw err if err?
    console.log shops

API

  • getShops(cb) calls cb 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 ProductCount
    • number ProgramId that is the id of the programs this shop belongs to
  • getPrograms(displayOptions, query, cb)

    • displayOptions

      • required number CurrentPage
      • required number PageSize
      • string SortByEnum
        • one of:
          • ProgramId
          • ProgramTitle
          • ProgramLifetime
        • default is ProgramId
      • string SortOrderEnum
        • one of:
          • Ascending
          • Descending
        • default is Ascending
    • 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
    • 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 are
        • NotApplied
        • Paused
        • Active
        • Cancelled
        • Declined
        • Waiting
      • object CommissionRates
        • object PayPerLead
          • number MinRate
          • number MaxRate
        • object PayPerSale
          • number MinRate
          • number MaxRate
        • object PayPerClick
          • number MinRate
          • number MaxRate
      • string Limitations

License: MIT

Readme

Keywords

none

Package Sidebar

Install

npm i affilinet

Weekly Downloads

2

Version

0.0.5

License

none

Last publish

Collaborators

  • snd