Extension:SpamBlacklist/API
Appearance
spamblacklist | |
---|---|
This module cannot be used as a generator. | |
Prefix | none |
Required rights | none |
Post only? | No |
Generated help | Current |
You can use the API (action=spamblacklist) to check a url's status against the SpamBlacklist.
Parameters
[edit]url
: A pipe-separated list of URLs to check against
Example
[edit]Check "http://example.net" against the blacklist
Result |
---|
<?xml version="1.0"?>
<api>
<spamblacklist result="blacklisted">
<matches>
<match>example.net</match>
</matches>
</spamblacklist>
</api>
|
Returned fields
[edit]result
: "ok" if not blacklisted, "blacklisted" if blacklisted.matches
: If blacklisted, a collection of the strings that matched a regular expression