Command to get ban data, how other data is related to bans, and some data related to bans.
<mbapi> <command><!-- string --></command> <showXMLHeader><!-- boolean --></showXMLHeader> <params> <banID><!-- int --></banID> <banType><!-- int --></banType> <banString><!-- string --></banString> <banActive><!-- boolean --></banActive> <banCountLessThan><!-- int --></banCountLessThan> <banCount><!-- int --></banCount> <banCountGreaterThan><!-- int --></banCountGreaterThan> <banDateLastUsedLessThan><!-- int --></banDateLastUsedLessThan> <banDateLastUsed><!-- int --></banDateLastUsed> <banDateLastUsedGreaterThan><!-- int --></banDateLastUsedGreaterThan> </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> <bans> <ban> <banID><!-- int --></banID> <banString><!-- string --></banString> <banType><!-- int --></banType> <banActive><!-- boolean --></banActive> <banCount><!-- int --></banCount> <banDateLastUsed><!-- int --></banDateLastUsed> </ban> </bans> </results> </mbapi>
mbapi
MBAPI request document root.
command
Required. The string GetBans.
showXMLHeader
Whether to show an XML header in the results.
params
GetBans parameters.
banID
Limit data to bans of this ID. This may occur multiple times, or not at all.
banType
Limit data to bans of this type.
0: e-mail 1: ip banString
Limit data to bans of this string. At the moment, this can either be an email address, or ip address that has been converted with ip2long()
banActive
Limit data to bans based on their active state.
banCountLessThan
Limit data to bans with a "hit" count less than this amount.
banCount
Limit data to bans with a "hit" count equal this amount.
banCountGreaterThan
Limit data to bans with a "hit" count greater than this amount.
banDateLastUsedLessThan
Limit data to bans with a last "hit" timestamp less than this amount.
banDateLastUsed
Limit data to bans with a last "hit" timestamp equal this amount.
banDateLastUsedGreaterThan
Limit data to bans with a last "hit" timestamp greater than this amount.
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.
bans
Contains all ban results.
ban
Contains all results for a single ban. Occurs header numResults times.
banID
The ID of the ban.
banString
The ban name for the order form. Names need not be unique. Operations are performed on IDs. Names are merely for display.
banType
The type of ban.
0: e-mail 1: ip banActive
Whether the ban is active. Inactive bans won't show up on order forms, among other obviously appropriate things.
banCount
The number of times this ban item has been "hit".
banDateLastUsed
The Unix timestamp of when the ban was last "hit".