var model = new UserInsertRequestModel()
{
Users = new UserInsertModel[]
{
new UserInsertModel()
{
ProntoID = "MyAccountName",
Username = "johnsmith",
FirstName = "John",
LastName = "Smith",
EmailAddress = "john.smith@your-domain.com",
SecurityQuestion = "What is you favorite color?",
SecurityAnswer = "Blue. No, I mean yellow... ahhhh!!",
Password = "p@ssword123"
}
}
};
var results = serviceClient.InsertUsers(sa, model);
if (results.IsSuccessful)
{
//do work...
}
else
{
//handle error
}
Dim model = New UserInsertRequestModel() With {
.Users = New UserInsertModel() {New UserInsertModel() With {
.ProntoID = "MyAccountName",
.Username = "johnsmith",
.FirstName = "John",
.LastName = "Smith",
.EmailAddress = "john.smith@your-domain.com",
.SecurityQuestion = "What is you favorite color?",
.SecurityAnswer = "Blue. No, I mean yellow... ahhhh!!",
.Password = "p@ssword123"
}}
}
Dim results = serviceClient.InsertUsers(sa, model)
If Not results.IsSuccessful Then
'do work...
Else
'handle error
End If