trainOnContent
- Home
- Moderation
- SvcSpamClassify
- trainOnContent
trainOnContent
Train classifier on given content.
Parameters
| Name | Description |
| xrefType required | Xref Type of the content. |
| xrefID required | Xref ID of the content. |
| spam optional | Whether the content is classified as spam. |
| output optional | The response output format. Accepts JSON and XML. |
Request Syntax
| https://services.onesite.com/rest/svcSpamClassify?action=trainOnContent&xrefType=blog_post&xrefID=117101923&spam&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 7 8 9 |
{ "service":"svcSpamClassify", "action":"trainOnContent", "code":1, "message":"Successfully trained on content.", "item":{ "success":true } } |
Service Information
| Service | svcSpamClassify |
| Method | trainOnContent |
| Type | REST |
| Response Types | JSON, XML |