Skip to content

trevorism/schedule-client

Repository files navigation

schedule-client

Build GitHub last commit GitHub language count GitHub top language

Java client for Trevorism scheduling API: Trevorism Schedule

Latest Version

How to Use

ScheduledTaskFactory factory = new DefaultScheduledTaskFactory()
EndpointSpec endpointSpec = new EndpointSpec("https://testing.trevorism.com/api/ping", HttpMethod.GET, null)
ScheduledTask st = factory.createImmediateTask("testSched", Instant.now().plus(60 * 60 * 3).toDate(), endpointSpec)
ScheduleService service = new DefaultScheduleService()
service.create(st)

Note: This library assumes the library consumer has a valid credentials per https://github.com/trevorism/secure-http-utils

How to Build

gradle clean build