|
ASP Akismet API
Classes
Akismet
|
AkismetThis class allows any ASP 3.0 application to use the Akismet anti-comment spam service. This service performs a number of checks on submitted data and returns whether or not the data is likely to be spam. Please note that in order to use this class, you must have a valid WordPress API key. They are free for non/small-profit types and getting one will only take couple of minutes. For commercial use, please visit the Akismet commercial licensing page. About
Summary
initialize
ASP Classes doesn’t have a constructor, so you must initialize the class manually. Parameters
Exampledim SpamSentinel : set SpamSentinel = new Akismet SpamSentinel.initialize "123456789abc", "http://blog.domain.com" set SpamSentinel = nothing isSpam
Test for spam. Returns
Exampledim SpamSentinel : set SpamSentinel = new Akismet SpamSentinel.initialize "123456789abc", "http://blog.domain.com" SpamSentinel.setPermalink "http://blog.domain.com/entry-permalink/" SpamSentinel.setCommentType "comment" SpamSentinel.setCommentAuthor "Author" SpamSentinel.setCommentAuthorEmail "author@isp.com" SpamSentinel.setCommentAuthorUrl "http://author.isp.com" SpamSentinel.setCommentContent "The content that was submit" Response.write SpamSentinel.isSpam() set SpamSentinel = nothing submitSpam
This call is for submitting comments that weren’t marked as spam but should have been. Returns
Exampledim SpamSentinel : set SpamSentinel = new Akismet SpamSentinel.initialize "123456789abc", "http://blog.domain.com" SpamSentinel.setPermalink "http://blog.domain.com/entry-permalink/" SpamSentinel.setCommentType "comment" SpamSentinel.setCommentAuthor "Author" SpamSentinel.setCommentAuthorEmail "author@isp.com" SpamSentinel.setCommentAuthorUrl "http://author.isp.com" SpamSentinel.setCommentContent "The content that was submit" Response.write SpamSentinel.submitSpam() set SpamSentinel = nothing submitHam
This call is intended for the marking of false positives, things that were incorrectly marked as spam. Returns
Exampledim SpamSentinel : set SpamSentinel = new Akismet SpamSentinel.initialize "123456789abc", "http://blog.domain.com" SpamSentinel.setPermalink "http://blog.domain.com/entry-permalink/" SpamSentinel.setCommentType "comment" SpamSentinel.setCommentAuthor "Author" SpamSentinel.setCommentAuthorEmail "author@isp.com" SpamSentinel.setCommentAuthorUrl "http://author.isp.com" SpamSentinel.setCommentContent "The content that was submit" Response.write SpamSentinel.submitHam() set SpamSentinel = nothing |
ASP Classes doesn’t have a constructor, so you must initialize the class manually.
public sub initialize( key, uri )
Set Akismet permalink parameter.
public sub setPermalink( value )
Set Akismet comment_type parameter.
public sub setCommentType( value )
Set Akismet comment_author parameter.
public sub setCommentAuthor( value )
Set Akismet comment_author_email parameter.
public sub setCommentAuthorEmail( value )
Set Akismet comment_author_url parameter.
public sub setCommentAuthorUrl( value )
Set Akismet comment_content parameter.
public sub setCommentContent( value )
Test for spam.
public function isSpam()
This call is for submitting comments that weren’t marked as spam but should have been.
public function submitSpam()
This call is intended for the marking of false positives, things that were incorrectly marked as spam.
public function submitHam()