GetItemGroupList - accountsIQ/API-Wiki GitHub Wiki
Get the list of existing stock item groups.
public WSResult2OfArrayOfItemGroup GetItemGroupList(string token)
Public Function GetItemGroupList(ByVal token As String) As WSResult2OfArrayOfItemGroup
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
WSResult2OfArrayOfItemGroup itemGroups = ws.GetItemGroupList(auth);
if (itemGroups.Status == OperationStatus.Success && itemGroups.Result != null)
{
foreach (ItemGroup itemGroup in itemGroups.Result)
{
// Do something with each item group.
}
}
else
{
// Examine the ErrorCode field for more information on the error.
}
}
Dim ws As New Integration
Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
Dim invoices As WSResult2OfArrayOfItemGroup = Me.ws.GetItemGroupList(Me.auth)
If ((itemGroups.Status = OperationStatus.Success) AndAlso (Not itemGroups.Result Is Nothing)) Then
Dim itemGroup As ItemGroup
For Each itemGroup In itemGroups.Result
' Do something with each item group
Next
End If
Else
' Examine the ErrorCode field for more information on the error.
End If
End If