classifyContent
- Home
- Moderation
- SvcSpamClassify
- classifyContent
classifyContent
Classify content and store into spam_classification.
Parameters
Name | Description |
xrefType required | Xref Type of the content. |
xrefID required | Xref ID of the content. |
userID required | User ID of the owner of the content. |
nodeID required | Node ID of the content. |
blogID optional | Blog ID of the content. |
ipAddress optional | IP Address of the user who created the content. |
engineID optional | Engine (training set) used for training/classification. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcSpamClassify?action=classifyContent&xrefType=blog_post&xrefID=117101924&userID=229928503&nodeID=188234&blogID=234714047&ipAddress=127.0.0.1&engineID=1&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
{ "service":"svcSpamClassify", "action":"classifyContent", "code":1, "message":"Successfully classified content.", "item":{ "xrefID":"117101924", "xrefType":"blog_post", "userID":229928503, "nodeID":188234, "blogID":234714047, "ipAddress":"127.0.0.1", "spamicity":0, "spam":0, "engineID":1 } } |
Service Information
Service | svcSpamClassify |
Method | classifyContent |
Type | REST |
Response Types | JSON, XML |