BuddyApiClient.Extensions.Microsoft.DependencyInjection 0.0.5-alpha

This is a prerelease version of BuddyApiClient.Extensions.Microsoft.DependencyInjection.
dotnet add package BuddyApiClient.Extensions.Microsoft.DependencyInjection --version 0.0.5-alpha                
NuGet\Install-Package BuddyApiClient.Extensions.Microsoft.DependencyInjection -Version 0.0.5-alpha                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BuddyApiClient.Extensions.Microsoft.DependencyInjection" Version="0.0.5-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BuddyApiClient.Extensions.Microsoft.DependencyInjection --version 0.0.5-alpha                
#r "nuget: BuddyApiClient.Extensions.Microsoft.DependencyInjection, 0.0.5-alpha"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BuddyApiClient.Extensions.Microsoft.DependencyInjection as a Cake Addin
#addin nuget:?package=BuddyApiClient.Extensions.Microsoft.DependencyInjection&version=0.0.5-alpha&prerelease

// Install BuddyApiClient.Extensions.Microsoft.DependencyInjection as a Cake Tool
#tool nuget:?package=BuddyApiClient.Extensions.Microsoft.DependencyInjection&version=0.0.5-alpha&prerelease                

BuddyApiClient.Extensions.Microsoft.DependencyInjection

BuddyApiClient extensions for Microsoft.Extensions.DependencyInjection.

How to use

  1. Add the BuddyApiClient.Extensions.Microsoft.DependencyInjection NuGet to your project:

    dotnet add package BuddyApiClient.Extensions.Microsoft.DependencyInjection --prerelease
    
  2. On app start-up, add BuddyApiClient to your container:

    builder.Services.AddBuddyClient();
    
  3. Get a personal access token, or a OAuth2 access token.

  4. Use the CreateBuddyClient factory delegate to create an instance of IBuddyClient, and query the Buddy API using your token. E.g:

    public class BuddyService
    {
        private readonly IBuddyClient _client;
    
        public BuddyService(CreateBuddyClient createBuddyClient)
        {
            _client = createBuddyClient("YOUR_TOKEN_HERE");
        }
    }
    

See the console app sample.

How to contribute

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.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.5-alpha 144 6/14/2022
0.0.4-alpha 126 6/12/2022