This command is used to retrieve admin group data including the admins of that group and actions that can be performed by that group. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetAdminGroups command:
<mbapi> <command><!-- string --></command> <showXMLHeader><!-- boolean --></showXMLHeader> <params> <adminGroupID><!-- int --></adminGroupID> <adminGroupName><!-- string --></adminGroupName> <getAdminData><!-- int --></getAdminData> <getActionData><!-- int --></getActionData> </params> </mbapi>
<mbapi> <header> <remoteSessionID><!-- hex --></remoteSessionID> <errorCount><!-- int --></errorCount> <errors> <error> <title><!-- string --></title> <message><!-- string --></message> </error> </errors> <numResults><!-- int --></numResults> <numAffectedRows><!-- int --></numAffectedRows> </header> <results> <adminGroups> <adminGroup> <adminGroupID><!-- int --></adminGroupID> <adminGroupName><!-- string --></adminGroupName> <admins> <admin> <adminID><!-- int --></adminID> <adminFirstName><!-- string --></adminFirstName> <adminLastName><!-- string --></adminLastName> <adminEmail><!-- string --></adminEmail> <adminUsername><!-- string --></adminUsername> <adminPassword><!-- string --></adminPassword> <adminTempPassword><!-- string --></adminTempPassword> <adminRemoteAccessHash><!-- string --></adminRemoteAccessHash> <active)> <adminActive><!-- None --></adminActive> <themeID><!-- int --></themeID> <languageID><!-- int --></languageID> <countriesID><!-- int --></countriesID> </active)> </admin> <actions><!-- group --></actions> <actionName><!-- string --></actionName> </admins> </adminGroup> </adminGroups> </results> </mbapi>
mbapi
MBAPI request document root.
command
Required. The string GetBans.
showXMLHeader
Whether to show an XML header in the results.
params
GetAdminGroups parameters.
adminGroupID
The ID of the admin group to fetch. This will always select at most 1 group.
adminGroupName
The name of the admin group to fetch.
getAdminData
Set to 1 to retieve all data for the admins associated with this group.
getActionData
Set to 1 to retieve all actions that admins associated with this group can perform.
mbapi
MBAPI response document root.
header
Contains result meta data: data about the result itself.
remoteSessionID
A session ID that may be used for authentication instead of a remote access hash.
errorCount
The number of errors that occured.
errors
Contains any errors that occured.
error
Contains information relating to a single error. Occurs header errorCount times.
title
The title of the error.
message
The error message.
numResults
The number of results that have been returned. For Get commands.
numAffectedRows
The number of rows that have been affected. For Set commands.
results
Contains any results.
adminGroups
Contains all admin group results.
adminGroup
Contains all results for a single admin group. Occurs header numResults times.
adminGroupID
The ID of the admin group.
adminGroupName
The admin group name for the order form. Names need not be unique. Operations are performed on IDs. Names are merely for display.
admins
Contains admins in group
admin
Contals all admins for a single admin group.
adminID
The ID of the admin.
adminFirstName
The first name of the admin.
adminLastName
The last name of the admin.
adminEmail
The email address of the admin.
adminUsername
The username of the admin.
adminPassword
The encrypted admin user password.
adminTempPassword
The temporary password if user has envoked the "forgotten password" process.
adminRemoteAccessHash
Admin remote access hash.
active)
Is admin active. (0 =
adminActive
themeID
Theme id user is set to use.
languageID
Language id user is set to use.
countriesID
Set country id of the admin.
actions
Contains action's the admin is permited to access.
actionName
The permited action Name.