2019-09-13 04:20:03 +12:00
|
|
|
const sdk = require('node-appwrite');
|
2019-08-19 22:31:06 +12:00
|
|
|
|
2019-09-13 04:20:03 +12:00
|
|
|
// Init SDK
|
|
|
|
let client = new Locale.Client();
|
|
|
|
|
|
|
|
let locale = new sdk.Locale(client);
|
|
|
|
|
|
|
|
client
|
2019-10-02 07:10:33 +13:00
|
|
|
.setProject('')
|
|
|
|
.setKey('')
|
2019-08-19 22:31:06 +12:00
|
|
|
;
|
|
|
|
|
2019-09-13 04:20:03 +12:00
|
|
|
let promise = locale.getCurrencies();
|
2019-08-19 22:31:06 +12:00
|
|
|
|
|
|
|
promise.then(function (response) {
|
|
|
|
console.log(response);
|
|
|
|
}, function (error) {
|
|
|
|
console.log(error);
|
|
|
|
});
|