This is the official Java sdk for Ticktok.io service.
artifacts available @ bintray repositories
repositories {
jcenter()
}
...
dependencies {
...
compile 'io.ticktok:ticktok-java-client:0.4.6'
}
<repositories>
...
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com/</url>
</repository>
</repositories>
...
<dependencies>
...
<dependency>
<groupId>io.ticktok</groupId>
<artifactId>ticktok-java-client</artifactId>
<version>0.4.6</version>
</dependency>
</dependencies>
new Ticktok(options().domain("<ticktok-domain>").token("<ticktok-token>")).
schedule("my first clock", "every.5.seconds", () -> {
System.out.print("tick me baby one more time");
});
new Ticktok(options().domain("<ticktok-domain>").token("<ticktok-token>")).
tick("my first clock", "every.5.seconds");
Come & chat with us on Slack