Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
cake-affiliate-api
Advanced tools
Readme
CAKE is SaaS platform providing marketing intelligence for perforfmance marketers (LinkedIn). These guys have many different APIs thus they provide big marketing platform. This module covers Affiliate APIs group.
cake build
)npm install cake-affiliate-api --save
'use strict'
var CakeAffiliateAPI = require('cake-affiliate-api')
, options
, client
options = {
"apiKey": "MY_API_KEY",
"affiliateId": "100500",
"baseUrl": "https://cake.coolnetwork.com",
"rawResponse": true
}
client = new CakeAffiliateAPI(options)
client.offerFeed({offerStatusId: 3}, handleResult)
function handleResult(err, data) {
if (err) {
// handle error...
}
else {
handleData(data)
}
}
Keep in mind that every API option which is passed in camelcase
is underscore
d before making HTTP call. So it's OK to name options like mediaTypeCategoryId
(converted to media_type_category_id
).
data
options:
description
defaults to null
data
options:
notes
defaults to null
false
query
options:
startAtRow
defaults to 1
rowLimit
defaults to 0
query
options:
campaignName
defaults ''
mediaTypeCategoryId
defaults to 0
verticalCategoryId
defaults to 0
verticalId
defaults to 0
offerStatusId
defaults to 0
tagId
defaults to 0
startAtRow
defaults to 1
rowLimit
defaults to 0
apiKey defaults to null
affiliateId defaults to null
baseUrl defaults to null
rawResponse defaults false
true
xml2js is not called for XML response and it's returned as string.parser defaults to null
parse(xmlString, callback)
where callback
accepts (err, response)
xml2jsOptions defaults to {explicitArray: false}
xml2js.parseString()
. If specified will overwrite defaults. Also if specified, client won't try to process response smartly (i.e. if response outputs collection it will return raw xml2js
output instead of array).Why module is writted on CoffeeScript but compiled to JavaScript after npm install
?
I really like CoffeeScript for fast module development but dislike when people do something like this:
require('coffee-script');
require('./module.coffee');
Why should we do this if in the end all is compiled to JavaScript? :wink:
FAQs
Cake Affiliate API for Node.js
The npm package cake-affiliate-api receives a total of 3 weekly downloads. As such, cake-affiliate-api popularity was classified as not popular.
We found that cake-affiliate-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.