0.2.0 • Published 8 years ago

sitegate-user v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

sitegate-user

Dependency Status Build Status

Methods

getById(id, callback)

Usage

User.getById('550b42003376b4ec12fbbcb1', function(err, user) {
  console.log(user.name);
});

Arguments

update(id, updatedFields, callback)

Usage

User.update('550b42003376b4ec12fbbcb1', {
  name: 'New name'
}, function (err, user) {
  console.log(user.name);
});

Arguments

NameTypeDescription
idstringThe ID of the user that has to be updated.
updatedFieldsobjectA hash of the fields that have to be updated with the new values.
cbfunction(err, user)A callback function to receive the updated user.

License

The MIT License (MIT)