-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (25 loc) · 778 Bytes
/
index.js
File metadata and controls
26 lines (25 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* Adleria bindings for nodejs
*
* (c) 2015 Optimal Bits Sweden AB.
*
*/
/// <reference path="typings/node/node.d.ts"/>
"use strict";
module.exports = function (networkId, apiToken, opts) {
opts = opts || {};
var auth = {
user: networkId,
pass: apiToken,
};
var baseUrl = opts.url || "https://dev.adleria.com/";
return {
adspaces: require("./lib/adspaces")(auth, baseUrl, opts),
players: require("./lib/players")(auth, baseUrl, opts),
invoices: require("./lib/invoices")(auth, baseUrl, opts),
networks: require("./lib/networks")(auth, baseUrl, opts),
tags: require("./lib/tags")(auth, baseUrl, opts),
agents: require("./lib/agents")(auth, baseUrl, opts),
customers: require("./lib/customers")(auth, baseUrl, opts),
};
};