API url: http://api.uclassify.com (port 80)
Post xml encoded requests to the API url: http://api.uclassify.com (port 80)
Example of successful call (a classify call would contain more in a successful response)
Example of unsuccessful call, the error shows the call that failed (the one with id 'ClassifyCall1')
Example of two successful classify calls to a spam classifier
Example of a successful classifyKeywords call to a spam classifier
Example of a successful getInformation call on a spam classifier
This shows how to create a classifier that distinguishes text between the classes Klingon, Sindarin and Huttese. This is done in one request, however it's possible to split it into one for each call, or any number. And of course it's possible (and necessary) to continue training the classifier with more texts for each fantasy language.
Requests to train it further could look like this
When training is done, a classify request with two unclassified texts could look like this
This example uses stream_context_create to post a message, another possible way is to use CURL