Closed LightVolk closed 8 years ago
Should be like this
vk.request('users.get', {'user_id' : 1}, function(_o) {
//console.log(_o);
assert.equal(_o.response[0].id, 1);
assert.ok(['Павел', 'Pavel'].indexOf(_o.response[0].first_name) !== -1);
assert.ok(['Дуров', 'Durov'].indexOf(_o.response[0].last_name) !== -1);
done();
});
And make sure you setup correct app id and secret.
Can you help me- why result if undefined?