{"id":20578125,"url":"https://github.com/timeplus-io/java-demo","last_synced_at":"2026-04-22T04:06:24.329Z","repository":{"id":115243843,"uuid":"529483764","full_name":"timeplus-io/java-demo","owner":"timeplus-io","description":"Sample Java code to demo how to call Timeplus REST API (not for Proton)","archived":false,"fork":false,"pushed_at":"2023-09-15T14:35:40.000Z","size":207,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-06T11:39:43.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/timeplus-io.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-27T04:45:30.000Z","updated_at":"2023-09-15T14:34:40.000Z","dependencies_parsed_at":"2024-02-23T03:31:18.774Z","dependency_job_id":null,"html_url":"https://github.com/timeplus-io/java-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/timeplus-io/java-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fjava-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fjava-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fjava-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fjava-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timeplus-io","download_url":"https://codeload.github.com/timeplus-io/java-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fjava-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-16T06:10:47.001Z","updated_at":"2026-04-22T04:06:24.230Z","avatar_url":"https://github.com/timeplus-io.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Timeplus Java API demo\n\n[ApplicationSample.java](https://github.com/timeplus-io/java-demo/blob/main/src/main/java/samples/ApplicationSample.java) contains three basic samples to demonstrate how to interacting with Timeplus Rest API.\n\n1. List streams ([doc](https://docs.timeplus.com/rest.html#tag/Streams-v1beta2/paths/~1v1beta2~1streams/get))\n2. List 10 queries ([doc](https://docs.timeplus.com/rest.html#tag/Queries-v1beta2/paths/~1v1beta2~1queries/get))\n3. Create query and get its results ([doc](https://docs.timeplus.com/rest.html#tag/Queries-v1beta2/paths/~1v1beta2~1queries/post))\n\nYou will need to setup the following environment variables:\n\n```bash\nexport TIMEPLUS_API_KEY=\"\u003cYOUR API KEY\u003e\"\n\n# Make sure there is no trailing `/`\nexport TIMEPLUS_ADDRESS=\"https://us.timeplus.cloud\" \n\n# This is the ID (not friendly name) of your workspace\nexport TIMEPLUS_WORKSPACE=\"\u003cYOUR WORKSPACE ID\u003e\"\n```\n\nThen you can simply run `make run` to start the sample application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeplus-io%2Fjava-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimeplus-io%2Fjava-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeplus-io%2Fjava-demo/lists"}