Client API

This section of our site documents the application programmer interface (API) you must comply with to make requests to our service.

Because our service is based upon the XML-RPC standard you should be able to code clients in a great number of programming languages and environments - For example we have PHP-based plugins along with code samples written in Ruby, Perl & Python.

Connection Details

Unless you've downloaded the server source code and are running your own local installation you should submit your to the following host:

Hostnametest.blogspam.net
Port8888
Path/

If your XML-RPC environment requires you to specify an URL then you should use the following:

  • http://test.blogspam.net:8888/

Available Client Methods

The RPC service we run exposes the following methods, which combined make up our API:

testComment
 string  testCommentstruct )
          Test the content of the comment encapsulated in the given structure and return a string describing the result.

 

classifyComment
 string  classifyCommentstruct )
          Train the given comment as spam, or ham, in the case of error.

 

getPlugins
 array  getPlugins(  )
          Return the list of server-side testing plugins.

 

getStats
 struct  getStatsstring )
          Return the statistics for the current site.