Gets public information about a user.
GET /users/#{user_id}.{json or xml}
// Code
user_show($user_id)
Parameters:
- user_id. Required. A User ID.
user/loggedin
Gets public information about the logged in user. Useful with OAuth.
GET /users/loggedin.{json or xml}
// Code
users_loggedin()
user/create
Creates a new User. Unless $fast_activation is used this method will require email activation or administrator activation (depending on settings). Does not require a valid user during $TPerformant object creation. If Extra Fields have been configured and are required they need to be added too.
POST /users.{json or xml}
// Code user_create($user, $user_info, $fast_activation)
Parameters:
- user. Required. An array that looks like: ("user_type" => "affiliate or advertiser", "login" => "login", "email" => "email address", "password" => "password", "password_confirmation" => "password")
- user_info. Required. An array that looks like: ("firstname" => "firstname", "lastname" => "lastname", "organization" => "organization", "country" => "country", "state" => "state", "city" => "city", "address" => "address", "phone" => "phone", "display_name" => "regular or organization", "newsletter" => 0, "other_data" => "key: value array with extra fields if configured")
- fast_activation. Optional. 1 or 0. Fast activation will activate the account without requiring an email check. No messages will be sent to the user.
- if you are using fast_activation you have to be authenticated as 'uradmin' with the API.