API Reference

Users.registerOrUpdateV2



Syntax

mixed users.registerOrUpdateV2 ( int vhost, array userData, bool activate = false, bool sendEmail = false, bool genCode = false, bool sendSMS = false, string recaptchaToken = false, 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
sendEmailboolOptionalfalseSend user an email
genCodeboolOptionalfalseCreate an activation code.
sendSMSboolOptionalfalseSend the activate code to the user via SMS
recaptchaTokenstringOptionalfalseTo be used to validate against recaptcha key in project settings
returnUserInfoboolOptionalfalseIf 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