lib/akismet.rb
# Call to check and verify your API key. You may then call the #hasVerifiedKey method to see if your key has been validated.
Call to check and verify your API key. You may then call the #hasVerifiedKey method to see if your key has been validated.
Call to check and verify your API key . You may then call the #hasVerifiedKey method to see if your key has been validated .
def verify_api_key
      http = Net::HTTP.new('rest.akismet.com', 80, @proxy_host, @proxy_port)
      resp, data = http.post('/1.1/verify-key', "key=#{@api_key}&blog=#{@blog}", STANDARD_HEADERS)
      @verified_key = (data == "valid") ? true : :false
    end
def verify_api_key http = Net :: HTTP . new ( 'rest.akismet.com' , 80 , @proxy_host , @proxy_port ) resp , data = http . post ( '/1.1/verify-key' , "key=#{@api_key}&blog=#{@blog}" , STANDARD_HEADERS ) @verified_key = ( data == "valid" ) ? true : :false end
Call to check and verify your API key.
Call to check and verify your API key .