-
Notifications
You must be signed in to change notification settings - Fork 1
/
t.api.js
30 lines (22 loc) · 824 Bytes
/
t.api.js
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
27
28
29
30
//© Copyright 2016 Joshua 'JD' Davison - MIT License.
// Generated by CoffeeScript 1.10.0
(function() {
var TelstraAPI, tAuth, tSMS, tWiFi;
tAuth = require('./lib/t.auth');
tSMS = require("./lib/t.sms");
tWiFi = require("./lib/t.wifi");
TelstraAPI = (function() {
function TelstraAPI(CONSUMER_KEY, CONSUMER_SECRET) {
this.CONSUMER_KEY = CONSUMER_KEY;
this.CONSUMER_SECRET = CONSUMER_SECRET;
if ((this.CONSUMER_KEY == null) || (this.CONSUMER_SECRET == null)) {
throw Error("[T.API] Init Error: CONSUMER_KEY or CONSUMER_SECRET missing");
}
this.auth = new tAuth(this.CONSUMER_KEY, this.CONSUMER_SECRET);
this.sms = new tSMS(this.auth);
this.wifi = new tWiFi(this.auth);
}
return TelstraAPI;
})();
module.exports = TelstraAPI;
}).call(this);