Skip to content

java toggl-api-v9 version with use of spring RestClient

License

Notifications You must be signed in to change notification settings

rocketbase-io/toggl-api-v9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toggl-api-v9

build Maven Central

Java RestClients for Toggl APIv9

Features:

  • Major Track API
  • Report Detail API
  • Only mainly major path is implemented

designed

It's desinged in a fluent mapper. Starting from TogglApi your can navigate to track / report api... After that you can go to the different resources and their metheods

usage

<dependency>
    <groupId>io.rocketbase.toggl</groupId>
    <artifactId>toggl-api-v9</artifactId>
    <version>${CURRENT_VERSION}</version>
</dependency>
import io.rocketbase.toggl.TogglApi;
import io.rocketbase.toggl.TogglApiRest;
import io.rocketbase.toggl.TogglConfig;

TogglApi togglApi = new TogglApiRest(new TogglConfig("api-token-xxx"));
MeDto response = togglApi.track()
        .me()
        .get();

Library needs as dependency:

  • spring-web
  • jackson-databind
  • jackson-datatype-jsr310

have been marked as provided to go with your project's spring-versions