19 lines
No EOL
315 B
Markdown
19 lines
No EOL
315 B
Markdown
const sdk = require('node-appwrite');
|
|
|
|
// Init SDK
|
|
let client = new sdk.Client();
|
|
|
|
let users = new sdk.Users(client);
|
|
|
|
client
|
|
.setProject('')
|
|
.setKey('')
|
|
;
|
|
|
|
let promise = users.get('[USER_ID]');
|
|
|
|
promise.then(function (response) {
|
|
console.log(response);
|
|
}, function (error) {
|
|
console.log(error);
|
|
}); |