{"id":23498188,"url":"https://github.com/vpro/prepr","last_synced_at":"2025-08-27T22:30:36.162Z","repository":{"id":41851244,"uuid":"133041214","full_name":"vpro/prepr","owner":"vpro","description":"Domain classes and client for the radiomanager API 'prepr' https://developers.prepr.io/ ","archived":false,"fork":false,"pushed_at":"2024-04-03T09:30:04.000Z","size":6309,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-04-03T10:35:15.131Z","etag":null,"topics":["graphlr","mediaconnect","npo","poms","prepr"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vpro.png","metadata":{"files":{"readme":"README.adoc","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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-05-11T13:10:43.000Z","updated_at":"2023-01-31T17:00:03.000Z","dependencies_parsed_at":"2023-10-20T11:28:01.065Z","dependency_job_id":null,"html_url":"https://github.com/vpro/prepr","commit_stats":null,"previous_names":["vpro/mediaconnect"],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fprepr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fprepr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fprepr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fprepr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vpro","download_url":"https://codeload.github.com/vpro/prepr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231181885,"owners_count":18340122,"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":["graphlr","mediaconnect","npo","poms","prepr"],"created_at":"2024-12-25T05:28:57.099Z","updated_at":"2024-12-25T05:28:57.721Z","avatar_url":"https://github.com/vpro.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= prepr\n\nDomain classes and client for https://prepr.io[Prepr.io] ('prepr')\n\nhttps://prepr.dev[API Documentation for Prepr]\n\nimage:https://github.com/vpro/prepr/workflows/build/badge.svg?[Build Status,link=https://github.com/vpro/prepr/actions?query=workflow%3Abuild]\nimage:https://img.shields.io/maven-central/v/nl.vpro/prepr.svg?label=Maven%20Central[Maven Central,link=https://search.maven.org/search?q=g:%22nl.vpro%22%20AND%20a:%22prepr%22]\nimage:https://img.shields.io/nexus/s/https/oss.sonatype.org/nl.vpro/prepr.svg[snapshots,link=https://oss.sonatype.org/content/repositories/snapshots/nl/vpro/prepr/]\nimage:http://www.javadoc.io/badge/nl.vpro/prepr.svg?color=blue[javadoc,link=http://www.javadoc.io/doc/nl.vpro/prepr]\nimage:https://codecov.io/gh/vpro/prepr/branch/main/graph/badge.svg[codecov,link=https://codecov.io/gh/vpro/prepr]\n\nThis was created because https://rs.poms.omroep.nl/v1[POMS] sychronized (until april 2024) data from Prepr for radio related data of the Dutch public broadcasters. It doesn't do that anymore, so this project may be archived soon.\n\n\n\n\nExample code:\n\n[source,java]\n----\n   PreprRepositoryImpl impl = new PreprRepositoryImpl(\n       Prepr.\n        .builder()\n        .clientId(\"\u003cyour client id\u003e\")\n        .clientSecret(\"\u003cyour client secret\u003e\")\n        .build();\n\n\n\n    public void getSchedule() throws IOException, URISyntaxException {\n        log.info(\"schedule: {}\",\n            impl.getTimelines().getSchedule(UUID.fromString(\"59ad94c1-7dec-4ea0-a9b4-b9eb4b6cfb16\") // Channel.RAD5)\n                , LocalDate.of(2018, 5, 7), LocalDate.of(2018, 5, 8))\n        );\n    }\n----\n\nIt is also possible to instantiate a bunch of repositories using spring\n\n[source,xml]\n----\n  \u003cbean class=\"nl.vpro.io.prepr.spring.SpringPreprRepositoriesConfiguration\"\u003e\n    \u003cconstructor-arg value=\"media.properties\" /\u003e\n  \u003c/bean\u003e\n----\n\nThis will create `PreprRepositoryImpl` beans `prepr.\u0026lt;channel\u0026gt;`, and also one instance of `PreprRepositories`\n\nSomething similar can also be accomplished without spring\n\n[source,java]\n----\nnl.vpro.io.prepr.StandalonePreprRepositories.fromMap()\n\n----\n\n(note that `@CacheResult` is not working then.)\n\n== Testing\n\nThere are junit test in the normal spots. Some things are in '*ITest' classes. These are currently mainly used to try things out. They find credentials in `${USER.HOME}/conf/prepr.properties`. We don't have proper integration tests yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpro%2Fprepr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvpro%2Fprepr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpro%2Fprepr/lists"}