{"id":30712102,"url":"https://github.com/trophyso/trophy-dotnet","last_synced_at":"2025-09-03T02:24:15.553Z","repository":{"id":276577070,"uuid":"929677408","full_name":"trophyso/trophy-dotnet","owner":"trophyso","description":".NET (C#) library for the Trophy API","archived":false,"fork":false,"pushed_at":"2025-08-19T09:40:41.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-19T11:39:18.169Z","etag":null,"topics":["api","api-client","csharp","dotnet","gamification","gamification-engine","gamification-framework","gamification-platform","sdk"],"latest_commit_sha":null,"homepage":"https://trophy.so","language":"C#","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-09T05:31:21.000Z","updated_at":"2025-08-19T09:40:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"040690d9-bf2b-4f3c-a255-56e0b387c1f7","html_url":"https://github.com/trophyso/trophy-dotnet","commit_stats":null,"previous_names":["trophyso/trophy-dotnet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trophyso/trophy-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trophyso","download_url":"https://codeload.github.com/trophyso/trophy-dotnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-dotnet/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","csharp","dotnet","gamification","gamification-engine","gamification-framework","gamification-platform","sdk"],"created_at":"2025-09-03T02:24:14.045Z","updated_at":"2025-09-03T02:24:15.539Z","avatar_url":"https://github.com/trophyso.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trophy .NET Library\n\nThe official [Trophy](https://trophy.so) .NET library.\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\nUsing the [.NET Core command-line interface (CLI) tools](https://docs.microsoft.com/en-us/dotnet/core/tools/):\n\n```sh\ndotnet add package Trophy\n```\n\nUsing the [NuGet Command Line Interface (CLI)](https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference):\n\n```sh\nnuget install Trophy\n```\n\nUsing the [Package Manager Console](https://docs.microsoft.com/en-us/nuget/tools/package-manager-console):\n\n```powershell\nInstall-Package Trophy\n```\n\nFrom within Visual Studio:\n\n1. Open the Solution Explorer.\n2. Right-click on a project within your solution.\n3. Click on _Manage NuGet Packages..._\n4. Click on the _Browse_ tab and search for \"Trophy\".\n5. Click on the Trophy package, select the appropriate version in the\n   right-tab and click _Install_.\n\n## Usage\n\nThe package needs to be configured with your account's API key, which is available in the Trophy\nweb interface. Set the API key with the following:\n\n```csharp\nusing TrophyApi;\n\nvar trophy = new TrophyApiClient(\"YOUR_API_KEY\");\n```\n\nThen you can access the Trophy API through the `trophy` client. For example, you can send a metric\nevent:\n\n```csharp\nvar user = new EventRequestUser {\n   Id = \"18\",\n   Email = \"jk.rowling@harrypotter.com\"\n};\n\nvar request = new MetricsEventRequest {\n   User = user,\n   Value = 750\n};\n\nawait trophy.Metrics.EventAsync(\"words-written\", request);\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-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrophyso%2Ftrophy-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrophyso%2Ftrophy-dotnet/lists"}