{"id":17340278,"url":"https://github.com/biacode/jcronofy","last_synced_at":"2026-03-03T02:31:51.318Z","repository":{"id":53520781,"uuid":"70178098","full_name":"Biacode/jcronofy","owner":"Biacode","description":"Java implementation of Cronofy API","archived":false,"fork":false,"pushed_at":"2021-03-26T10:16:11.000Z","size":233,"stargazers_count":8,"open_issues_count":2,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T07:22:41.423Z","etag":null,"topics":["construct-client","cronofy","cronofy-api","java","java-api","java-library","json"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Biacode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-06T17:46:11.000Z","updated_at":"2025-01-30T09:24:33.000Z","dependencies_parsed_at":"2022-08-24T17:51:20.827Z","dependency_job_id":null,"html_url":"https://github.com/Biacode/jcronofy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biacode%2Fjcronofy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biacode%2Fjcronofy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biacode%2Fjcronofy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biacode%2Fjcronofy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Biacode","download_url":"https://codeload.github.com/Biacode/jcronofy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943445,"owners_count":21186958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["construct-client","cronofy","cronofy-api","java","java-api","java-library","json"],"created_at":"2024-10-15T15:44:30.185Z","updated_at":"2026-03-03T02:31:51.275Z","avatar_url":"https://github.com/Biacode.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### CI Status\n[![Build Status](https://travis-ci.org/Biacode/jcronofy.svg?branch=master)](https://travis-ci.org/Biacode/jcronofy)\n[![SonarCube](https://getstreaming.files.wordpress.com/2012/10/sonar.png)](https://sonarqube.com/dashboard/index/com.sfl.cronofy:cronofy)\n# jcronofy\nJava implementation of Cronofy API\n# How to use\n\n### Installation\n\nMaven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.biacode.jcronofy\u003c/groupId\u003e\n    \u003cartifactId\u003ejcronofy\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\nGradle\n```groovy\ncompile 'org.biacode.jcronofy:jcronofy:1.2.0'\n```\nSnapshot repository\n```xml\n\u003crepositories\u003e\n   \u003crepository\u003e\n     \u003cid\u003esnapshots-repo\u003c/id\u003e\n     \u003curl\u003ehttps://oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e\n     \u003creleases\u003e\u003cenabled\u003efalse\u003c/enabled\u003e\u003c/releases\u003e\n     \u003csnapshots\u003e\u003cenabled\u003etrue\u003c/enabled\u003e\u003c/snapshots\u003e\n   \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\n### Getting started\n\nFirst of all, you need any implementation of ```javax.ws.rs.client.Client```\nFor example you can use jersey client\n\nAdd the following dependency to your maven pom.xml file\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.glassfish.jersey.core\u003c/groupId\u003e\n    \u003cartifactId\u003ejersey-client\u003c/artifactId\u003e\n    \u003cversion\u003e${jersey.client.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\nThen you need pass client implementation to CronofyClient as constructor param.\n\n# Example to construct client implementation in spring framework.\nIn application context XML add the following XML definition\n```java\n\u003cbean id=\"cronofyJerseyClientBuilder\"\n          class=\"org.biacode.jcronofy.api.configuration.impl.CronofyJerseyClientBuilderImpl\"/\u003e\n\n\u003cbean id=\"cronofyJerseyClient\" factory-bean=\"cronofyJerseyClientBuilder\" factory-method=\"build\"/\u003e\n\n\u003cbean id=\"cronofyClient\" class=\"org.biacode.jcronofy.api.client.impl.CronofyClientImpl\"\u003e\n    \u003cconstructor-arg name=\"client\" ref=\"cronofyJerseyClient\"/\u003e\n\u003c/bean\u003e\n\n```\n\n# If you simply need to test cronofy API.\nThen construct jersey client as follows\n```java\npackage my.application;\n\nimport com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;\nimport org.biacode.jcronofy.api.client.CronofyClient;\nimport org.biacode.jcronofy.api.client.impl.CronofyClientImpl;\nimport org.biacode.jcronofy.api.model.common.CronofyResponse;\nimport org.biacode.jcronofy.api.model.request.ListCalendarsRequest;\nimport org.biacode.jcronofy.api.model.response.ListCalendarsResponse;\n\nimport javax.ws.rs.client.ClientBuilder;\n\npublic class MainApplication {\n    public static void main(final String[] args) {\n        // Construct cronofy java client\n        final CronofyClient cronofyClient = new CronofyClientImpl(ClientBuilder.newBuilder().register(JacksonJsonProvider.class).build());\n        // List calendars\n        final CronofyResponse\u003cListCalendarsResponse\u003e calendarsResult = cronofyClient.listCalendars(new ListCalendarsRequest(\"your access token here\"));\n        System.out.println(calendarsResult.getResponse().toString());\n        // Read events\n        final CronofyResponse\u003cReadEventsResponse\u003e eventsResult = cronofyClient.readEvents(new ReadEventsRequest(\"your access token here\", \"Etc/UTC\"));\n        // If an error occur\n        if (eventsResult.hasError()) {\n            System.out.println(eventsResult.getError());\n        } else {\n            System.out.println(eventsResult.getResponse());\n        }\n    }\n}\n```\n\nYou can find test access token in [Cronofy Calendar Sendbox](https://app.cronofy.com/oauth/sandbox)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiacode%2Fjcronofy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiacode%2Fjcronofy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiacode%2Fjcronofy/lists"}