Socket
Socket
Sign inDemoInstall

affilinet

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    affilinet

simple interface to the affilinet api


Version published
Maintainers
1
Install size
9.79 kB
Created

Readme

Source

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

FAQs

Last updated on 22 Aug 2012

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc