BuddyApiClient 0.0.3-alpha
See the version list below for details.
dotnet add package BuddyApiClient --version 0.0.3-alpha
NuGet\Install-Package BuddyApiClient -Version 0.0.3-alpha
<PackageReference Include="BuddyApiClient" Version="0.0.3-alpha" />
<PackageVersion Include="BuddyApiClient" Version="0.0.3-alpha" />
<PackageReference Include="BuddyApiClient" />
paket add BuddyApiClient --version 0.0.3-alpha
#r "nuget: BuddyApiClient, 0.0.3-alpha"
#:package BuddyApiClient@0.0.3-alpha
#addin nuget:?package=BuddyApiClient&version=0.0.3-alpha&prerelease
#tool nuget:?package=BuddyApiClient&version=0.0.3-alpha&prerelease
BuddyApiClient
A .NET client for the Buddy API.
How to use BuddyApiClient
Add the BuddyApiClient NuGet to your project:
dotnet add package BuddyApiClient --prereleaseGet a personal access token, or a OAuth2 access token, to access the Buddy API.
On app start-up, add BuddyApiClient to your service collection:
services.AddBuddyClient(new BuddyClientOptions { AccessToken = "YOUR_TOKEN_HERE" });Next, take a dependence on
IBuddyClient(or any resource specific client interface, e.g.IMembersClient,IProjectsClient, andIVariablesClient), and query the Buddy API.
How to contribute to BuddyApiClient
BuddyApiClient is Open Source (MIT), and you're welcome to contribute!
If you have a bug report, feature request, or suggestion, please open a new issue. To submit a patch, please send a pull request.
How to run the integration tests
To run the integration tests, run Buddy On-Premises in Docker. Set up a Buddy user, and workspace, and generate a personal access token. Then add config to the BuddyApiClient.IntegrationTest project in VS, and run the tests.
How to create the Buddy container
Get Docker.
Build the Docker-in-Docker image:
docker build -t ubuntu-dind https://github.com/logikfabrik/BuddyApiClient.git#master:dockerStart a container:
docker run -itd -p 127.0.0.1:443:443 --privileged --name buddy-on-premises ubuntu-dindInstall Buddy in the container (in non-interactive mode):
docker exec -it buddy-on-premises /bin/bash -c "curl -sSL https://get.buddy.works | sh && sudo buddy --yes --ver 2.4.60 install"
How to start the Buddy container, if stopped
Start the container:
docker start buddy-on-premisesStart Buddy:
docker exec -it buddy-on-premises /bin/bash -c "buddy start"
How to set up Buddy (and generate a personal access token)
Start the Buddy container, if stopped.
Browse https://127.0.0.1. The SSL certificate will be issued to buddy.standalone - this is by design.
Set up a Buddy user, and workspace.
Go to Workspace Settings and check Enable developer API.
Go to API > Personal Access tokens and click Generate a new token.
Enter a name for the token, check all scopes, and click Add a new API token.
Copy the token, and use it in place of YOUR_TOKEN_HERE in this README.
How to add config to the BuddyApiClient.IntegrationTest project in VS
Open the solution in VS.
In the Solution Explorer window pane, right-click the BuddyApiClient.IntegrationTest project, then click Manage User Secrets.
Add config to
secrets.json:{ "BaseUrl": "https://127.0.0.1:443/api/", "AccessToken": "YOUR_TOKEN_HERE" }
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Ensure.That (>= 10.1.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Http (>= 6.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BuddyApiClient:
| Package | Downloads |
|---|---|
|
BuddyApiClient.Extensions.Microsoft.DependencyInjection
BuddyApiClient extensions for Microsoft.Extensions.DependencyInjection. BuddyApiClient is a .NET client for the Buddy (https://buddy.works) API. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.5-alpha | 292 | 6/14/2022 |
| 0.0.4-alpha | 264 | 6/12/2022 |
| 0.0.3-alpha | 271 | 6/7/2022 |
| 0.0.2-alpha | 269 | 3/2/2022 |
| 0.0.1-alpha | 258 | 3/1/2022 |