{"id":30712101,"url":"https://github.com/trophyso/trophy-java","last_synced_at":"2026-05-07T00:34:46.212Z","repository":{"id":276615593,"uuid":"929781261","full_name":"trophyso/trophy-java","owner":"trophyso","description":"Java library for the Trophy API.","archived":false,"fork":false,"pushed_at":"2025-08-28T10:19:02.000Z","size":122,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-28T17:33:12.111Z","etag":null,"topics":["api","api-client","gamification","gamification-engine","gamification-framework","gamification-platform","gradle","java","maven","sdk"],"latest_commit_sha":null,"homepage":"https://trophy.so","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trophyso.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,"zenodo":null}},"created_at":"2025-02-09T11:44:42.000Z","updated_at":"2025-08-28T10:19:06.000Z","dependencies_parsed_at":"2025-02-09T13:19:51.446Z","dependency_job_id":"4737d77b-89e1-4842-8ca6-cda0eeb06d71","html_url":"https://github.com/trophyso/trophy-java","commit_stats":null,"previous_names":["trophyso/trophy-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trophyso/trophy-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trophyso","download_url":"https://codeload.github.com/trophyso/trophy-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273378659,"owners_count":25094864,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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":["api","api-client","gamification","gamification-engine","gamification-framework","gamification-platform","gradle","java","maven","sdk"],"created_at":"2025-09-03T02:24:13.220Z","updated_at":"2026-05-07T00:34:46.173Z","avatar_url":"https://github.com/trophyso.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trophy Java SDK\n\nThe Trophy Java SDK provides convenient access to the Trophy API from applications written in Java.\n\nTrophy provides APIs and tools for adding gamification to your application, keeping users engaged\nthrough rewards, achievements, streaks, and personalized communication.\n\n## Installation\n\n### Gradle\n\nAdd the following dependency to your `build.gradle` file:\n\n```groovy\nimplementation 'so.trophy:trophy-java:1.0.0'\n```\n\n### Maven\n\nAdd the following dependency to your `pom.xml` file:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eso.trophy\u003c/groupId\u003e\n  \u003cartifactId\u003etrophy-java\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\nThe package needs to be configured with your account's API key which is available in the Trophy\ndashboard.\n\n```java\nimport so.trophy.*;\nimport so.trophy.resources.metrics.requests.MetricsEventRequest;\nimport so.trophy.types.EventRequestUser;\nimport so.trophy.types.EventResponse;\n\npublic class Main {\n  public static void main(String[] args) {\n    // Create a new trophy client\n    TrophyApiClient client = TrophyApiClient.builder()\n      .apiKey(\"YOUR_API_KEY\")\n      .build();\n\n    // Create a new event request\n    MetricsEventRequest request = MetricsEventRequest.builder()\n      .user(\n        EventRequestUser.builder()\n          .id(\"USER_ID\")\n          .email(\"jk.rowling@harrypotter.com\")\n          .build()\n      )\n      .value(750)\n      .build();\n\n    // Send the event request and log the created event ID\n    EventResponse response = client.metrics().event(\"words-written\", request);\n    System.out.println(response.getEventId());\n  }\n}\n\n```\n\n## Documentation\n\nSee the [Trophy API Docs](https://docs.trophy.so) for more\ninformation on the accessible endpoints.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrophyso%2Ftrophy-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrophyso%2Ftrophy-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrophyso%2Ftrophy-java/lists"}