The service enables you to view a list of all your regular (test and real) groups.
The operation returns an array of GroupData with the groups ids and names.
Parameters:
Java Code:
//get a reference to the service InwiseWebServices ws = new InwiseWebServices();
InwiseWebServicesSoap inwiseWebServicesSoap = ws.getInwiseWebServicesSoap();
//fill the security header
HeaderHandler hh = new HeaderHandler("myusername", "myPassword");
hh.setHeader(inwiseWebServicesSoap);
//call the operation
inwise.ArrayOfGroupData groups = inwiseWebServicesSoap.droupsMyRegularGroups();
Iterator<GroupData> it=groups.getGroupData().iterator();
while (it.hasNext())
{
GroupData group = it.next();
int groupid = group.getId();//the group id
String groupName = group.getName();//the group name
}
C# Code:
//get a reference to the service
InwiseWebServices.InwiseWebServices ws = new InwiseWebServices.InwiseWebServices();
//fill the security header
InwiseWebServices.SecHeader header = new InwiseWebServices.SecHeader();
header.username = "username";
header.pass = "myPassword";
ws.SecHeaderValue = header;//set credentials
//call the operation
InwiseWebServices.GroupData[] groups = ws.Groups_MyRegularGroups();
for (int i = 0; i < groups.Length; i++)
{
InwiseWebServices.GroupData group = groups[i];
int groupid = group.Id;//the group id
string groupName = group.Name;//the group name
}
VB Code:
'get a reference to the service
Dim ws As InwiseWebServices.InwiseWebServices = New InwiseWebServices.InwiseWebServices()
'fill the security header
Dim header As InwiseWebServices.SecHeader = New InwiseWebServices.SecHeader()
header.username = "username"
header.pass = "myPassword"
ws.SecHeaderValue = header 'set credentials
'call the operation
Dim groups() As InwiseWebServices.GroupData = ws.Groups_MyRegularGroups()
Dim i As Integer
For i = 0 To groups.Length - 1 Step i + 1
Dim group As InwiseWebServices.GroupData = groups(i)
Dim groupid As Integer = group.Id 'the group id
Dim groupName As String = group.Name 'the group name
Next