The resources responsible for creating and managing users
-
netField.users.sensoredge.completeRegistration(params, [callback])
-
netField.users.sensoredge.getverifytempuser(email, [callback])
-
netField.users.profile.notificationEmails.add(params, [callback])
-
netField.users.profile.notificationEmails.getAll(page, limit, sortBy, sortOrder, [callback])
-
netField.users.profile.notificationEmails.delete(notificationEmailId, [callback])
Create new user
/**
* @param {object} params
* @param {function} callback optional
*/
netField.users.create(params, [callback])
Self registration for user (uses public token)
/**
* @param {object} params
* @param {function} callback optional
*/
netField.users.createselfusers(params, [callback])
Get users by organisationId
/**
* @param {number} organisationId
* @param {any} options optional
* @param {function} callback optional
*/
netField.users.getAll(organisationId, [options], [callback])
Get user by userId
/**
* @param {number} userId
* @param {function} callback optional
*/
netField.users.get(userId, [callback])
Suggest user
/**
* @param {object} params
* @param {function} callback optional
*/
netField.users.suggest(params, [callback])
Resend user verification code to email
/**
* @param {string} email
* @param {function} callback optional
*/
netField.users.getverifyuser(email, [callback])
Update user
/**
* @param {number} userId
* @param {object} params
* @param {function} callback optional
*/
netField.users.update(userId, params, [callback])
Verify user by code send trough email
/**
* @param {object} params
* @param {function} callback optional
*/
netField.users.verifyuser(params, [callback])
Delete User
/**
* @param {number} userId
* @param {function} callback optional
*/
netField.users.delete(userId, [callback])
Get user profile
/**
* @param {function} callback optional
*/
netField.users.profile.get([callback])
Update user profile
/**
* @param {object} params
* @param {function} callback optional
*/
netField.users.profile.update(params, [callback])
Create new tempUser
/**
* @param {object} params
* @param {function} callback optional
*/
netField.users.sensoredge.create(params, [callback])
Generate sensor edge registration access token
/**
* @param {object} params
* @param {function} callback optional
*/
netField.users.sensoredge.completeRegistration(params, [callback])
Verify a user by the code sent through email
/**
* @param {object} params
* @param {function} callback optional
*/
netField.users.sensoredge.verify(params, [callback])
Resend tempUser verification code to email
/**
* @param {string} email
* @param {function} callback optional
*/
netField.users.sensoredge.getverifytempuser(email, [callback])
Add notification email to current user profile
/**
* @param {object} params
* @param {function} callback optional
*/
netField.users.profile.notificationEmails.add(params, [callback])
Get user profile notification emails
/**
* @param {number} page
* @param {number} limit
* @param {String} sortBy
* @param {String} sortOrder asc, desc
* @param {function} callback optional
*/
netField.users.profile.notificationEmails.getAll(page, limit, sortBy, sortOrder, callback)
Delete notification email
/**
* @param {number} notificationEmailId
* @param {function} callback optional
*/
netField.users.profile.notificationEmails.delete(notificationEmailId, [callback])