Skip to content

ticktok-io/ticktok-java-client

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Ticktok Java client

CircleCI Release License

This is the official Java sdk for Ticktok.io service.

Quick Start

Import sdk

artifacts available @ bintray repositories

Gradle

repositories {
    jcenter()
}

... 

dependencies {
  ...
    compile 'io.ticktok:ticktok-java-client:0.4.6'
}

Maven

<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>

Example

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");

Community

Come & chat with us on Slack