var model = new GroupInsertRequestModel()
{
Groups = new GroupInsertModel[]
{
new GroupInsertModel()
{
Name = "Web Services Test Account",
OwnerName = "Test Owner",
OwnerEmail = "test@your-domain.com"
}
}
};
var results = serviceClient.InsertGroups(sa, model);
if (results.IsSuccessful)
{
//do work...
}
else
{
//handle error
}
Dim model = New GroupInsertRequestModel() With {
.Groups = New GroupInsertModel() {New GroupInsertModel() With {
.Name = "Web Services Test Account",
.OwnerName = "Test Owner",
.OwnerEmail = "test@your-domain.com"
}}
}
Dim results = serviceClient.InsertGroups(sa, model)
If Not results.IsSuccessful Then
'do work...
Else
'handle error
End If