https://github.com/meziantou/meziantou.gitlabclient
.NET client for GitLab API
https://github.com/meziantou/meziantou.gitlabclient
dotnet dotnet-standard gitlab-api
Last synced: 9 months ago
JSON representation
.NET client for GitLab API
- Host: GitHub
- URL: https://github.com/meziantou/meziantou.gitlabclient
- Owner: meziantou
- License: mit
- Archived: true
- Created: 2018-07-12T05:23:40.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T12:35:42.000Z (almost 4 years ago)
- Last Synced: 2025-10-03T13:51:36.612Z (9 months ago)
- Topics: dotnet, dotnet-standard, gitlab-api
- Language: C#
- Homepage:
- Size: 946 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Meziantou.GitLabClient
[](https://www.nuget.org/packages/Meziantou.GitLabClient/)
[](https://github.com/meziantou/Meziantou.GitLabClient/blob/master/LICENSE)
.NET client for GitLab API. Support .NET Standard 2.0.
# How to install
Install the NuGet package [`Meziantou.GitLabCLient`](https://www.nuget.org/packages/Meziantou.GitLabClient/)
# How to use
Lots of methods are included in the client and accessible through `GitLabClient`:
````csharp
using(var client = GitLabClient.Create("https://gitlab.com", personalAccessToken))
{
var projects = await client.Projects.GetAllAsync().ToListAsync();
}
````
Even if a property is not directly exposed, you can access it using the `dynamic` type:
````csharp
using(var client = GitLabClient.Create("https://gitlab.com", personalAccessToken))
{
dynamic result = await client.Get("repository/new-method");
string value = result.json_property_name;
}
````