flattr4j is a free open source Java library for using the Flattr API and adding Flattr buttons to JSP web sites.
It primarily targets for business grade Flattr integration, e.g. on servers, web sites and full-featured desktop applications, but it can also be used on Android devices.
flattr4j is actively maintained! The release rate is low because flattr4j is mature and stable, and there have been only very few changes to the Flattr API recently.
- Lightweight and easy to use
- Covers the entire Flattr API
- Also runs on Android
- Helps through the OAuth authentication process at Flattr, no OAuth knowledge is needed
- With Maven and Spring support
- Spring Social provider available (currently beta)
- Core JavaDoc API
- Web JavaDoc API
- Taglib JavaDoc
- Async JavaDoc API
- Spring Social Provider JavaDoc API
- Maven Project Website
- Use Maven to add flattr4j to your project
Examples and How-Tos¶
- First Steps: How to use flattr4j at all
- Open Data API: How to access the Open Services API
- REST API: How to access the Flattr Services API
- CRUD: How to Create, Read, Update and Delete Things
- Async API: How to access Flattr asynchronously
- OAuth Procedure: How to get access to an user's Flattr account
- OAuth Android: How to get an OAuth Access Token on Android devices
- Spring: How to integrate flattr4j in Spring
- Android: How to use flattr4j on Android devices
- Logging: How to enable logging
- Peek behind the Curtain: How to place direct calls to the Flattr REST service
- Source Code: Where to get the source code?
- Changelog: What has changed?
- API Console: Console for sending Flattr API calls
flattr4j needs at least Java 1.6 or Android API level 8 (earlier levels should work, but are untested).
flattr4j version 2 requires json.org. If you use Maven, the dependency is loaded automatically. Android API provides it, so flattr4j-core does not need additional libraries on Android devices.
Up to version 2.11, flattr4j also required Apache HttpComponents 4.
flattr4j is not related to or supported by Flattr AB.