Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

affilinet

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

affilinet

simple interface to the affilinet api

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 22 Aug 2012

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc