A simple module to integrate with the Adform API
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
README.md
adform.js
example.js
package.json

README.md

node-adformbuild status

About

A node.js module to work with the adform api.

Warning

This is far from feature complete. The API will change dramaticly in ways that aren't backwards compatible. There might be bugs etc etc.

Installation

npm install adform

Example

    // this file is also available as example.js in the project root
    var adform = require('adform');

    // ticket is a security token you get when logged in used to do further
    // actions with the api
    adform.login(userName, password, function(err, ticket) {
        adform.getAdvertisers(ticket, function(err, advertisers) {
            // advertisers is a list of advertisers (clients) associated with
            // the logged in user
            console.log('Advertisers:');
            advertisers.forEach(function(advertiser) {
                console.log('name: %s id: %s', advertiser.name, advertiser.id);
            });
        });
    });