Untappd4j is a Java/REST client to access the Untappd API available at Untappd's Developer Documentation. It was developed based on Retrofit2.
Untappd4j is licensed under Apache 2 license.
It's really simple to use the client, first of all you need credentials, e.g. client_id and client_secret that must be requested at Untappd Add App
The second step is create a object of br.com.thiagomoreira.untappd.Untappd
class and start to invoke its methods. That's it!
import br.com.thiagomoreira.untappd.Untappd;
import br.com.thiagomoreira.untappd.model.Brewery;
public static void main(String[] args) {
String clientId = "...";
String clientSecret = "...";
Untappd untappd = new Untappd(clientId, clientSecret);
Brewery brewery = untappd.getBrewery(459);
System.out.println(brewery.getBreweryName());
System.out.println(brewery.getBeerCount());
}
Yep, it is a small list. Can you help me? Look here: Contributing.
- getBrewery(long breweryId)
- getBeer(long beerId)
Untappd4j is available on Maven central, the artifact is as follows:
Maven:
<dependency>
<groupId>br.com.thiagomoreira.untappd</groupId>
<artifactId>untappd4j</artifactId>
<version>1.0.0</version>
</dependency>
Gradle:
dependencies {
compile(group: "br.com.thiagomoreira.untappd", name: "untappd4j", version: "1.0.0");
}
Untappd4j tracks bugs and feature requests with Github's issue system. Feel free to open your new ticket!
Untappd4j is a project based on Maven to improve it you just need to fork the repository, clone it and from the command line invoke
mvn package
After complete your work you can send a pull request to incorporate the modifications.
Enjoy!