const sdk = require('node-appwrite');

// Init SDK
let client = new Users.Client();

let users = new sdk.Users(client);

client
    setProject('')
    setKey('')
;

let promise = users.getUserLogs('[USER_ID]');

promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
});