API Reference

Users.registerOrUpdateV2



Syntax

mixed users.registerOrUpdateV2 ( int vhost, array userData, bool activate = false, int|bool sendEmail = false, bool genCode = false, int|bool sendSMS = false, string|bool recaptchaToken = false, int|bool returnUserInfo = false, bool login = false )

Arguments

NameTypeRequiredDefault valueDescription
vhostintRequirednoneThe id of the vhost.
userDataarrayRequirednoneAn array of user data as described in users.register (http://developer.newspark.ca/mediadetail/5547189?groupId=11699&top=11699).
activateboolOptionalfalseActivate user automatically
sendEmailint|boolOptionalfalseSend user an email
genCodeboolOptionalfalseCreate an activation code.
sendSMSint|boolOptionalfalseSend the activate code to the user via SMS
recaptchaTokenstring|boolOptionalfalseTo be used to validate against recaptcha key in project settings
returnUserInfoint|boolOptionalfalseIf true it will return an array of userinfo, otherwise only the id will be returned
loginboolOptionalfalseIf true, will return active session token

Sample Response

Code examples

0 comments

Be the first to comment on registerOrUpdateV2.

Add a Comment

  • captcha