{"id":25830924,"url":"https://github.com/lab5e/csharp-userapi","last_synced_at":"2026-06-13T05:32:22.680Z","repository":{"id":97096102,"uuid":"355832135","full_name":"lab5e/csharp-userapi","owner":"lab5e","description":"C# User API Client library","archived":false,"fork":false,"pushed_at":"2022-06-30T09:20:54.000Z","size":201,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T22:39:19.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lab5e.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":"2021-04-08T08:55:30.000Z","updated_at":"2022-06-30T09:16:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"7eb436d9-9424-4733-b99b-41510716e555","html_url":"https://github.com/lab5e/csharp-userapi","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/lab5e/csharp-userapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fcsharp-userapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fcsharp-userapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fcsharp-userapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fcsharp-userapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lab5e","download_url":"https://codeload.github.com/lab5e/csharp-userapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fcsharp-userapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34273788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":"2025-02-28T19:34:54.447Z","updated_at":"2026-06-13T05:32:22.675Z","avatar_url":"https://github.com/lab5e.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Com.Lab5e.User - the C# library for the The User API\n\nAPI to manage teams, members and tokens\n\nThis C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: 1.3.13 bordering-jerilyn\n- SDK version: 1.3.13\n- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen\n    For more information, please visit [https://docs.lab5e.com](https://docs.lab5e.com)\n\n\u003ca name=\"frameworks-supported\"\u003e\u003c/a\u003e\n## Frameworks supported\n\n\u003ca name=\"dependencies\"\u003e\u003c/a\u003e\n## Dependencies\n\n- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.11.7 or later\n- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 12.0.3 or later\n- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later\n- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later\n\nThe DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:\n```\nInstall-Package RestSharp\nInstall-Package Newtonsoft.Json\nInstall-Package JsonSubTypes\nInstall-Package System.ComponentModel.Annotations\n```\n\nNOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)\n\n\u003ca name=\"installation\"\u003e\u003c/a\u003e\n## Installation\nRun the following command to generate the DLL\n- [Mac/Linux] `/bin/sh build.sh`\n- [Windows] `build.bat`\n\nThen include the DLL (under the `bin` folder) in the C# project, and use the namespaces:\n```csharp\nusing Com.Lab5e.User.Api;\nusing Com.Lab5e.User.Client;\nusing Com.Lab5e.User.Model;\n```\n\u003ca name=\"packaging\"\u003e\u003c/a\u003e\n## Packaging\n\nA `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages.\n\nThis `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly:\n\n```\nnuget pack -Build -OutputDirectory out Com.Lab5e.User.csproj\n```\n\nThen, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual.\n\n\u003ca name=\"usage\"\u003e\u003c/a\u003e\n## Usage\n\nTo use the API client with a HTTP proxy, setup a `System.Net.WebProxy`\n```csharp\nConfiguration c = new Configuration();\nSystem.Net.WebProxy webProxy = new System.Net.WebProxy(\"http://myProxyUrl:80/\");\nwebProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;\nc.Proxy = webProxy;\n```\n\n\u003ca name=\"getting-started\"\u003e\u003c/a\u003e\n## Getting Started\n\n```csharp\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing Com.Lab5e.User.Api;\nusing Com.Lab5e.User.Client;\nusing Com.Lab5e.User.Model;\n\nnamespace Example\n{\n    public class Example\n    {\n        public static void Main()\n        {\n\n            Configuration config = new Configuration();\n            config.BasePath = \"https://api.lab5e.com\";\n            // Configure API key authorization: APIToken\n            config.ApiKey.Add(\"X-API-Token\", \"YOUR_API_KEY\");\n            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed\n            // config.ApiKeyPrefix.Add(\"X-API-Token\", \"Bearer\");\n\n            var apiInstance = new ProfileApi(config);\n\n            try\n            {\n                // Logged in profile\n                UserProfile result = apiInstance.GetUserProfile();\n                Debug.WriteLine(result);\n            }\n            catch (ApiException e)\n            {\n                Debug.Print(\"Exception when calling ProfileApi.GetUserProfile: \" + e.Message );\n                Debug.Print(\"Status Code: \"+ e.ErrorCode);\n                Debug.Print(e.StackTrace);\n            }\n\n        }\n    }\n}\n```\n\n\u003ca name=\"documentation-for-api-endpoints\"\u003e\u003c/a\u003e\n## Documentation for API Endpoints\n\nAll URIs are relative to *https://api.lab5e.com*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*ProfileApi* | [**GetUserProfile**](docs/ProfileApi.md#getuserprofile) | **GET** /user/profile | Logged in profile\n*TeamsApi* | [**AcceptInvite**](docs/TeamsApi.md#acceptinvite) | **POST** /user/teams/accept | Accept invite\n*TeamsApi* | [**CreateTeam**](docs/TeamsApi.md#createteam) | **POST** /user/teams | Create team\n*TeamsApi* | [**DeleteInvite**](docs/TeamsApi.md#deleteinvite) | **DELETE** /user/teams/{teamId}/invites/{code} | Delete invite\n*TeamsApi* | [**DeleteMember**](docs/TeamsApi.md#deletemember) | **DELETE** /user/teams/{teamId}/members/{userId} | Remove member\n*TeamsApi* | [**DeleteTeam**](docs/TeamsApi.md#deleteteam) | **DELETE** /user/teams/{teamId} | Remove team\n*TeamsApi* | [**GenerateInvite**](docs/TeamsApi.md#generateinvite) | **POST** /user/teams/{teamId}/invites | Generate invite\n*TeamsApi* | [**ListInvites**](docs/TeamsApi.md#listinvites) | **GET** /user/teams/{teamId}/invites | List invites\n*TeamsApi* | [**ListTeams**](docs/TeamsApi.md#listteams) | **GET** /user/teams | List teams\n*TeamsApi* | [**RetrieveInvite**](docs/TeamsApi.md#retrieveinvite) | **GET** /user/teams/{teamId}/invites/{code} | Retrieve invite\n*TeamsApi* | [**RetrieveMember**](docs/TeamsApi.md#retrievemember) | **GET** /user/teams/{teamId}/members/{userId} | Retrieve member\n*TeamsApi* | [**RetrieveTeam**](docs/TeamsApi.md#retrieveteam) | **GET** /user/teams/{teamId} | Retrieve team\n*TeamsApi* | [**RetrieveTeamMembers**](docs/TeamsApi.md#retrieveteammembers) | **GET** /user/teams/{teamId}/members | List members\n*TeamsApi* | [**UpdateMember**](docs/TeamsApi.md#updatemember) | **PATCH** /user/teams/{teamId}/members/{userId} | Update member\n*TeamsApi* | [**UpdateTeam**](docs/TeamsApi.md#updateteam) | **PATCH** /user/teams/{teamId} | Update team\n*TokensApi* | [**CreateToken**](docs/TokensApi.md#createtoken) | **POST** /user/tokens | Create token\n*TokensApi* | [**DeleteToken**](docs/TokensApi.md#deletetoken) | **DELETE** /user/tokens/{token} | Remove token\n*TokensApi* | [**ListTokens**](docs/TokensApi.md#listtokens) | **GET** /user/tokens | List tokens\n*TokensApi* | [**RetrieveToken**](docs/TokensApi.md#retrievetoken) | **GET** /user/tokens/{token} | Retrieve token\n*TokensApi* | [**UpdateToken**](docs/TokensApi.md#updatetoken) | **PATCH** /user/tokens/{token} | Update token\n\n\n\u003ca name=\"documentation-for-models\"\u003e\u003c/a\u003e\n## Documentation for Models\n\n - [Model.ATeam](docs/ATeam.md)\n - [Model.AcceptInviteRequest](docs/AcceptInviteRequest.md)\n - [Model.AnAPIToken](docs/AnAPIToken.md)\n - [Model.DeleteInviteResponse](docs/DeleteInviteResponse.md)\n - [Model.DeleteTokenResponse](docs/DeleteTokenResponse.md)\n - [Model.Invite](docs/Invite.md)\n - [Model.InviteList](docs/InviteList.md)\n - [Model.Member](docs/Member.md)\n - [Model.MemberList](docs/MemberList.md)\n - [Model.MemberOfATeam](docs/MemberOfATeam.md)\n - [Model.ProtobufAny](docs/ProtobufAny.md)\n - [Model.RequestInviteDetails](docs/RequestInviteDetails.md)\n - [Model.RpcStatus](docs/RpcStatus.md)\n - [Model.Team](docs/Team.md)\n - [Model.TeamList](docs/TeamList.md)\n - [Model.Token](docs/Token.md)\n - [Model.TokenList](docs/TokenList.md)\n - [Model.UserProfile](docs/UserProfile.md)\n\n\n\u003ca name=\"documentation-for-authorization\"\u003e\u003c/a\u003e\n## Documentation for Authorization\n\n\u003ca name=\"APIToken\"\u003e\u003c/a\u003e\n### APIToken\n\n- **Type**: API key\n- **API key parameter name**: X-API-Token\n- **Location**: HTTP header\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab5e%2Fcsharp-userapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flab5e%2Fcsharp-userapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab5e%2Fcsharp-userapi/lists"}