getStats

The getStats function of our API allows you to see how many comments have been blocked, or accepted, upon your site by our test.

The Input Paramater

The getComment function accepts a single parameter, which is an XML::RPC string. (XML-RPC mandates the format of several parameter types such as "string", "int", "struct".)

The string you pass in should be the URL of your site, and would match that automatically passed via the plugin you're using.

Example

The following would be examples:


string => http://debian-administration.org

getStats( "http://www.debian-administration.org" );

The Return Value

The return value of the function call is a single struct, with two members. (Remember that XML-RPC mandates a couple of different datatypes. Think of a struct as a hash, or named array).

okAn integer count of the comments approved.
spamAn integer count of the comments rejected.