This is a Java library for the Pebble Timeline API. Documentation for the full api can be found here.
Using maven:
<dependency>
<groupId>nl.palolem</groupId>
<artifactId>pebble-timeline</artifactId>
<version>1.1</version>
</dependency>
Pin pin = new Pin.Builder().id("example-pin-generic-1")
.time(new Date())
.layout(new GenericPin.Builder()
.title("News at 6 o'clock")
.tinyIcon(Icon.NOTIFICATION_FLAG)
.build())
.build();
Timeline.sendPin("my-token", pin);
See tests for more examples.