-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
46 lines (28 loc) · 846 Bytes
/
test.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
var cobregratis = require("./lib/cobregratis");
cobregratis.set_token("FlyKmxj1aIIlmcM9oCdcLA4DW5SxnqofLwn2NwAVsE1l8BYwOGiQn9HpxyEz");
cobregratis.delete(68749, function(response) {
console.log(response);
});
/*cobregratis.get_billet(68703, function(response) {
var bank_billet = response.bank_billet;
console.log(bank_billet.description)
});
cobregratis.get_billets(function(response) {
console.log(response);
})
var options = {
bank_billet_account_id : 3096,
name: 'Rafael Amorim teste 3',
amount: 13.52,
expire_at: "2012-09-30",
};
cobregratis.create(options, function(response) {
console.log(response);
});
var options = {
name: 'Rafael Amorim teste editado'
};
cobregratis.edit(68746, options, function(response) {
console.log(response);
});
*/