lib/akismet.rb
# Internal call to Akismet. Prepares the data for posting to the Akismet service.
#
# akismet_function
#   The Akismet function that should be called
# user_ip (required)
#    IP address of the comment submitter.
# user_agent (required)
#    User agent information.
# referrer (note spelling)
#    The content of the HTTP_REFERER header should be sent here.
# permalink
#    The permanent location of the entry the comment was submitted to.
# comment_type
#    May be blank, comment, trackback, pingback, or a made up value like "registration".
# comment_author
#    Submitted name with the comment
# comment_author_email
#    Submitted email address
# comment_author_url
#    Commenter URL.
# comment_content
#    The content that was submitted.
# Other server enviroment variables
#    In PHP there is an array of enviroment variables called $_SERVER which contains information about the web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet as how the submited content interacts with the server can be very telling, so please include as much information as possible.  
Internal call to Akismet. Prepares the data for posting to the Akismet service.
akismet_function
The Akismet function that should be called
user_ip (required)
IP address of the comment submitter.
user_agent (required)
User agent information.
referrer (note spelling)
The content of the HTTP_REFERER header should be sent here.
permalink
The permanent location of the entry the comment was submitted to.
comment_type
May be blank, comment, trackback, pingback, or a made up value like "registration".
comment_author
Submitted name with the comment
comment_author_email
Submitted email address
comment_author_url
Commenter URL.
comment_content
The content that was submitted.
Other server enviroment variables
In PHP there is an array of enviroment variables called $_SERVER which contains information about the web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet as how the submited content interacts with the server can be very telling, so please include as much information as possible.
Internal call to Akismet . Prepares the data for posting to the Akismet service . akismet_function The Akismet function that should be called user_ip ( required ) IP address of the comment submitter . user_agent ( required ) User agent information . referrer ( note spelling ) The content of the HTTP_REFERER header should be sent here . permalink The permanent location of the entry the comment was submitted to . comment_type May be blank comment trackback pingback or a made up value like " registration " . comment_author Submitted name with the comment comment_author_email Submitted email address comment_author_url Commenter URL . comment_content The content that was submitted . Other server enviroment variables In PHP there is an array of enviroment variables called $_SERVER which contains information about the web server itself as well as a key / value for every HTTP header sent with the request . This data is highly useful to Akismet as how the submited content interacts with the server can be very telling so please include as much information as possible .
def call_akismet(akismet_function, options = {})
      http = Net::HTTP.new("#{@api_key}.rest.akismet.com", 80, @proxy_host, @proxy_port)
      data = URI.escape(options.update(:blog => @blog).inject([]) { |data, opt| data << '%s=%s' % opt } * '&')              
      resp, @last_response = http.post("/1.1/#{akismet_function}", data, STANDARD_HEADERS)
      @last_response
    end
def call_akismet ( akismet_function , options = { } ) http = Net :: HTTP . new ( "#{@api_key}.rest.akismet.com" , 80 , @proxy_host , @proxy_port ) data = URI . escape ( options . update ( :blog => @blog ) . inject ( [ ] ) { | data , opt | data << '%s=%s' % opt } * '&' ) resp , @last_response = http . post ( "/1.1/#{akismet_function}" , data , STANDARD_HEADERS ) @last_response end
Internal call to Akismet.
Internal call to Akismet .
akismet_function
<not_specific>
options
<not_specific>