Billbee.Net 1.0.7

dotnet add package Billbee.Net --version 1.0.7
                    
NuGet\Install-Package Billbee.Net -Version 1.0.7
                    
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="Billbee.Net" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Billbee.Net" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="Billbee.Net" />
                    
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 Billbee.Net --version 1.0.7
                    
#r "nuget: Billbee.Net, 1.0.7"
                    
#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.
#:package Billbee.Net@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Billbee.Net&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=Billbee.Net&version=1.0.7
                    
Install as a Cake Tool

Billbee.Net

Billbee.Net is a modern and asynchronous .NET client library designed to interact with the Billbee API efficiently.

GOAL

Provide .NET client support for the Billbee API.

Installation

Get it on NuGet:

PM> Install-Package Billbee.Net

Configuration

To use Billbee.Net in your .NET projects, add the necessary configuration to your appsettings.json file:

{
  "Billbee": {
    "BaseAddress": "https://app.billbee.io/api/v1",
    "ApiKey": "YOUR_API_KEY",
    "Username": "YOUR_USERNAME",
    "Password": "YOUR_PASSWORD"
  }
}

How to Use

Register the Service

In your Startup.cs or Program.cs file, register the Billbee service:

using Microsoft.Extensions.DependencyInjection;
using Billbee.Net;

public class Startup
{
    public Startup(IConfiguration configuration)
    {
        Configuration = configuration;
    }

    public IConfiguration Configuration { get; }
    
    public void ConfigureServices(IServiceCollection services)
    {
        var billbeeSettings = new BillbeeSettings();
        Configuration.GetSection("Billbee").Bind(billbeeSettings);
        
        var serviceProvider = new ServiceCollection()
            .AddBillbeeClient(billbeeSettings)
            .BuildServiceProvider();
    }
}

Example Usage

Here is an example of how to use the Billbee API client in your application:

using System;
using System.Threading.Tasks;
using Billbee.Net.Endpoints;
using Billbee.Net.Models;
using Microsoft.Extensions.Logging;

public class ExampleService
{
    private readonly ILogger<ExampleService> _logger;
    private readonly OrderEndpoint _orderEndpoint;

    public ExampleService(ILogger<ExampleService> logger, OrderEndpoint orderEndpoint)
    {
        _logger = logger;
        _orderEndpoint = orderEndpoint;
    }

    public async Task ProcessNewOrders()
    {
        try
        {
            var orders = await _orderEndpoint.GetAllAsync(minOrderDate: DateTime.Today.AddDays(-10));
            foreach (var order in orders.Data)
            {
                Console.WriteLine(order.BillBeeOrderId);
            }
        }
        catch (Exception ex)
        {
            _logger.LogError(ex, "An error occurred while processing new orders.");
        }
    }
}

Available Endpoints

The following endpoints are available in the Billbee.Net library:

  • AutomaticProvisionEndpoint
  • CloudStorageEndpoint
  • CustomerAddressEndpoint
  • CustomerEndpoint
  • DeliveryNoteEndpoint
  • EnumApiEndpoint
  • EventEndpoint
  • InvoiceEndpoint
  • OrderEndpoint
  • ProductEndpoint
  • ShipmentEndpoint
  • WebhookEndpoint

Important Notice

The library implements the key functionalities of the Billbee API but is not complete. If you have any questions or encounter any issues, please contact the developer.

License

This project is licensed under the MIT license. See the LICENSE file for more info.


This README provides a comprehensive overview and guide for developers on how to set up and use the Billbee.Net library, including installation, configuration, and usage examples, along with a list of available endpoints.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
1.0.7 301 7/9/2024
1.0.6 193 7/9/2024
1.0.5 200 7/9/2024
1.0.4 183 7/9/2024
1.0.3 212 7/9/2024
1.0.2 201 7/4/2024
1.0.1 202 7/3/2024
0.4.4 472 1/19/2024
0.4.3 488 12/28/2023
0.4.2 449 12/26/2023
0.4.1 432 12/26/2023
0.3.0 459 12/22/2023
0.2.9 413 12/22/2023
0.2.8 436 12/22/2023
0.2.7 1,075 1/18/2022
0.2.6 1,085 1/17/2022
0.2.5 1,028 1/17/2022
0.2.4 1,008 1/17/2022
0.2.3 995 1/14/2022
0.2.2 853 12/21/2021
Loading failed