fidor_starter_kits 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fidor_starter_kits/version.rb +1 -1
- data/starter_kits/node_tx/example.js +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4df0e9c5000cf5dc388bb42eaa41dc15e68bff48
|
4
|
+
data.tar.gz: 2a25eff0b18cb2f58d943b7a3a96b234279f29b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac1a8ac9fdc024f2665ce6b214c4223200b63919836f8763eb20b9e7662d5157d98e718b5cba0e7a2921264f7c8c4d01dda02da4b8b59e25b40cb19e9612733e
|
7
|
+
data.tar.gz: a944dd792fcd25af0513c37df1ac01fa27c369c2340ff7e0bab31dca8ca7e4a47a803b35b778112f840819db7ff30fc945366cb3cbffd1b70c62f822bf671224
|
@@ -53,9 +53,7 @@ var querystring = require('querystring')
|
|
53
53
|
// @param cb : callback function(err, transactions)
|
54
54
|
function apiGetTransactions(accessToken, cb) {
|
55
55
|
// URL endpoint to call to retrieve transactions.
|
56
|
-
var tx_url = fidor_config.fidor_api_url+
|
57
|
-
"/transactions?access_token="+
|
58
|
-
accessToken
|
56
|
+
var tx_url = fidor_config.fidor_api_url+"/transactions?access_token="+ accessToken
|
59
57
|
|
60
58
|
var get = http.get(tx_url, function(res){
|
61
59
|
// response may come in numerous chunks, we need to collect
|
@@ -71,7 +69,7 @@ function apiGetTransactions(accessToken, cb) {
|
|
71
69
|
return
|
72
70
|
}
|
73
71
|
var d = JSON.parse(data)
|
74
|
-
cb(d.error, d.
|
72
|
+
cb(d.error, d.data)
|
75
73
|
})
|
76
74
|
})
|
77
75
|
|