devdeer.CoffeeCupApiAccess 2.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package devdeer.CoffeeCupApiAccess --version 2.0.2
                    
NuGet\Install-Package devdeer.CoffeeCupApiAccess -Version 2.0.2
                    
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="devdeer.CoffeeCupApiAccess" Version="2.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="devdeer.CoffeeCupApiAccess" Version="2.0.2" />
                    
Directory.Packages.props
<PackageReference Include="devdeer.CoffeeCupApiAccess" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add devdeer.CoffeeCupApiAccess --version 2.0.2
                    
#r "nuget: devdeer.CoffeeCupApiAccess, 2.0.2"
                    
#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.
#addin nuget:?package=devdeer.CoffeeCupApiAccess&version=2.0.2
                    
Install as a Cake Addin
#tool nuget:?package=devdeer.CoffeeCupApiAccess&version=2.0.2
                    
Install as a Cake Tool

devdeer.CoffeeCupApiAccess

Disclaimer

We are using this package in our own projects. So it is not only a playground but also production code. We are trying to keep the quality high but we are also humans. So if you find any issues please report them or even better: fix them and create a pull request.

Summary

This package contains logic to access CoffeeCup API with .NET 6 onwards.

Usage

In order to start using the logic in this package your first need to ensure that your DI container is configured correctly.

The following example shows a typical DI configuration:

using devdeer.CoffeeCupApiAccess.Logic.Core;

services.AddOptions<ApiOptions>()
    .Configure<IConfiguration>(settings, configuration) =>
    {
        configuration.GetSection("CoffeeCupAccess").Bind(settings);
    });     
services.AddHttpClient<CoffeeCupAccess>(
    c =>
    {
        var options = GetRequiredService<IOptions<ApiOptions>>();
        c.BaseAddress = new Uri("https://api.coffeecupapp.com");
        c.DefaultRequestHeaders.Add("Origin", options.Value.Origin);
    });

This assumes that your appsettings.json contains a section like this:

{
    "CoffeeCupAccess": {
        "CoffeeCupApiVersion": "v1",
        "CoffeeCupApiClientId": "",
        "CoffeeCupApiClientSecret": "",
        "CoffeeCupUsername": "",
        "CoffeeCupPassword": "",
        "CoffeeCupOrigin": ""
    }
}

About DEVDEER

DEVDEER is a company from Magdeburg, Germany which is specialized in consulting, project management and development. We are very focussed on Microsoft Azure as a platform to run our products and solutions in the cloud. So all of our backend components usually runs in this environment and is developed using .NET. In the frontend area we are using react and a huge bunch of packages to build our UIs.

You can find us online:

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 is compatible.  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. 
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
3.0.0 307 10/16/2024
2.0.4 589 12/17/2023
2.0.3 373 12/17/2023
2.0.2 378 12/17/2023
2.0.1 370 12/17/2023
2.0.0 392 12/16/2023
1.1.0 652 7/10/2023
1.0.0 608 6/18/2023
0.2.0-beta 533 6/17/2023
0.1.13-beta 963 12/20/2019
0.1.12-beta 823 12/20/2019
0.1.11-beta 805 12/19/2019
0.1.10-beta 838 12/6/2019
0.1.9-beta 825 12/5/2019
0.1.8-beta 834 12/2/2019
0.1.7-beta 930 3/25/2019
0.1.6-beta 874 3/25/2019
0.1.5-beta 887 3/25/2019
0.1.4-beta 919 3/25/2019
0.1.3-beta 890 3/25/2019
0.1.2-beta 927 3/23/2019
0.1.0-beta 912 3/23/2019
0.0.4-alpha 850 3/23/2019
0.0.3-alpha 908 3/18/2019
0.0.2-alpha 892 3/18/2019
0.0.1-alpha 930 3/17/2019

- Switched to .NET 6 + .NET 8
           - Query methods now retrieve arrays instead of IEnumerables.
           - Using dependency injection.
           - Switched to ILogger for traces.
           - Absence requests can be retrieved.
           - BREAKING: Using configuration options instead of RequestModel.