Giter VIP home page Giter VIP logo

java-akismet's Introduction

A java client for akismet.com

Maven Central

This is a client for the akismet spam checker that supports all api methods.

The project is a ready to use configured maven/eclipse project, dependencies are HttpComponents 4.x and slf4j.

Deployment

Run maven with the following argument added:

mvn -DargLine="-DakismetApiKey=YOUR_API_KEY -DakismetConsumer=YOUR_SITE" install

It get’s even more complicated using the release plugin:

mvn release:prepare -Darguments="-DargLine='-DakismetApiKey=YOUR_API_KEY -DakismetConsumer=YOUR_SITE'" 
mvn release:perform -Darguments="-DargLine='-DakismetApiKey=YOUR_API_KEY -DakismetConsumer=YOUR_SITE'" 

Usage

In a Spring 3.x application

The httpClient reference must be an instance of org.apache.http.client.HttpClient.


<bean name="akismet" class="ac.simons.akismet.Akismet">
	<constructor-arg name="httpClient" ref="httpClient" />
	<!-- The api key from akismet.com --> 
	<property name="apiKey" value="YOUR_API_KEY" />
	<!-- The name of your blog or site -->
	<property name="apiConsumer" value="YOUR_SITE" />
</bean>

java-akismet's People

Contributors

michael-simons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.