UsersCreating and maintaining user account, sign up and sign in, session management, password handling, search users, etc. it is also possible to create several applications and services, so the same user can subscribe to more than one application.This class is not part of the basic SDK.In order to use this class you must get an application id from AtlasCT. Summary
| |
| | | |
| |
| Subscribes a user to an application. |
| This requests adds a new user in the Users module. The user details will be used by all applications the user is subscribed to. |
| Cancels a user's subscription to an application. |
| |
| Changes a user's password. |
| Delete the presence icon of the current logged in user. |
| |
| Sends an email with the password details to a specific account. |
| Sends to the user's mobile phone SMS with a unique validation key. |
| Gets the presence details. |
| |
| Renew the current user's session. |
| Searchs for application users (searchs firstname or last name). |
| Sends to the current user's email box a validation email. |
| |
| Sets the presence details. |
| Sets the presence location. |
| Sets the presence status. |
| This is an application login request. |
| This is an application log out request. |
| This request is to update the user details. All the user details can be updated except for the userName. The user's password can only be updated using the change user password API. |
| This method will validate the user email. |
| Get the validation key from the user and validate his mobile phone. |
| |
| The message from the LBS server. |
| The ResponseStatus object of the users which includes the results from the server. |
| The response text from the LBS server. |
| The cause name result that return from the LBS server. |
| An array that contains a list of the causes result that return from the LBS server. |
| The cause type result that return from the LBS server. |
| The result id that return from the LBS server. |
| |
| |
| An array that contains a list of User objects. |
addAppSubscription
addAppSubscription( |
string userName | | |
string password | | )
|
|
Subscribes a user to an application.
Parameters
userName | The user name. |
password | The password. |
See Also
cancelAppSubscription
addUser
addUser( |
string userName | | |
string password | | |
string email | | |
string gender | | |
string country | | |
timestamp birthday | | |
string firstName | | |
string lastName | | |
string phoneNumber | | |
string field1 | | |
string field2 | | |
string field3 | | |
string phoneValidationKey | | )
|
|
This requests adds a new user in the Users module. The user details will be used by all applications the user is subscribed to.
Parameters
userName | The user name. |
password | The password. |
email | The email. |
gender | The gender(M/F). |
country | The country. |
birthday | The birthday in timestamp. |
firstName | The firstName. |
lastName | The lastName. |
phoneNumber | The phoneNumber. |
field1 | Custum field number 1. |
field2 | Custum field number 2. |
field3 | Custum field number 3. |
phoneValidationKey | The key that the user got from server by SMS. |
See Also
deleteUser
cancelAppSubscription
cancelAppSubscription( |
string userName | | |
string password | | )
|
|
Cancels a user's subscription to an application.
Parameters
userName | The user name. |
password | The password. |
See Also
addAppSubscription
changeUserName
changeUserName( |
string userName | | |
string password | | |
string newUserName | | )
|
|
Cancels a user's subscription to an application.
Parameters
userName | The user name. |
password | The password. |
newUserName | The new user name. |
See Also
changeUserPassword,
updateUser
changeUserPassword
changeUserPassword( |
string userName | | |
string password | | |
string newPassword | | )
|
|
Cancels a user's subscription to an application.
Parameters
userName | The user name. |
password | The password. |
newPassword | The new password. |
See Also
changeUserName,
updateUser
deletePresenceIcon
Delete the presence icon of the current logged in user.
deleteUser
deleteUser( |
string userName | | |
string password | | )
|
|
Deletes the user.
Parameters
userName | The user name. |
password | The password. |
forgotUserPassword
forgotUserPassword(string userName) |
|
Sends an email with the password details to a specific account.
ParametersSee Also
changeUserPassword
getPhoneValidationKey
getPhoneValidationKey(string phoneNumber) |
|
Sends to the user's mobile phone SMS with a unique validation key.
Parameters
phoneNumber | The phone number. |
See Also
addUser
keepSessionAlive
Renew the current user's session.
See Also
signIn
searchUsers
searchUsers(string searchText) |
|
Searchs for application users (searchs firstname or last name).
Parameters
searchText | The query to search for. |
sendValidationEmail
Sends to the current user's email box a validation email.
setAppId
Sets a new app id.
Parameters
setPresenceDetails
setPresenceDetails( |
boolean locationPermission | | |
string nickName | | |
string personnalMessage | | )
|
|
Sets the presence details.
Parameters
locationPermission | The location permissions for the user. If equal to false - the location of the user will stay private. |
nickName | The user's nickname. |
personnalMessage | The personnal message of the user. |
See Also
getPresenceDetails
setPresenceLocation
setPresenceLocation( |
LatLong latLong | | |
timestamp localTime | | |
timestamp time | | )
|
|
Sets the presence location.
Parameters
latLong | The latLong presence location. |
localTime | The local time in timestamp. |
time | The current time in timestamp. |
See Also
getPresenceDetails
setPresenceStatus
setPresenceStatus(string status) |
|
Sets the presence status.
Parameters
See Also
getPresenceDetails
signIn
signIn(string userName, string password) |
|
This is an application login request.
Parameters
userName | The user name. |
password | The password. |
See Also
signOut
signOut
This is an application log out request.
See Also
signIn
updateUser
updateUser( |
string email | | |
string gender | | |
string country | | |
timestamp birthday | | |
string firstName | | |
string lastName | | |
string phoneNumber | | |
string field1 | | |
string field2 | | |
string field3 | | |
string phoneValidationKey | | )
|
|
This request is to update the user details. All the user details can be updated except for the userName. The user's password can only be updated using the change user password API.
Parameters
email | The email. |
gender | The gender(M/F). |
country | The country. |
birthday | The birthday in timestamp. |
firstName | The firstName. |
lastName | The lastName. |
phoneNumber | The phoneNumber. |
field1 | Custum field number 1. |
field2 | Custum field number 2. |
field3 | Custum field number 3. |
phoneValidationKey | The key that the user got from server by SMS. Should update only if the phoneNumber has been changed. |
See Also
addUser
validateEmail
This method will validate the user email.
validatePhone
validatePhone( |
string phoneNumber | | |
string phoneValidationKey | | )
|
|
Get the validation key from the user and validate his mobile phone.
Parameters
phoneNumber | The phoneNumber. |
phoneValidationKey | The key that the user got from server by SMS. Should update only if the phoneNumber has been changed. |
responseMessage
The message from the LBS server.
responseStatus
The ResponseStatus object of the users which includes the results from the server.
responseText
The response text from the LBS server.
resultCauseName
The cause name result that return from the LBS server.
resultCausesList
An array that contains a list of the causes result that return from the LBS server.
resultCauseType
The cause type result that return from the LBS server.
resultId
The result id that return from the LBS server.
resultStatusCode
interger resultStatusCode |
Equal to resultId.
userList
An array that contains a list of User objects.
|