Alzabox.API.SDK 0.0.16

dotnet add package Alzabox.API.SDK --version 0.0.16
NuGet\Install-Package Alzabox.API.SDK -Version 0.0.16
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="Alzabox.API.SDK" Version="0.0.16" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Alzabox.API.SDK --version 0.0.16
#r "nuget: Alzabox.API.SDK, 0.0.16"
#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 Alzabox.API.SDK as a Cake Addin
#addin nuget:?package=Alzabox.API.SDK&version=0.0.16

// Install Alzabox.API.SDK as a Cake Tool
#tool nuget:?package=Alzabox.API.SDK&version=0.0.16

AlzaBox-API-SDK-csharp

  • Preview of opensource libraries for easier use of AlzaBox API.
  • Warning! Use it for your own risk, now.
  • This project is licensed under the terms of the MIT license.

How to communicate?

We can communicate with each other on discord completely openly, without prejudices, without worries, but also without guarantees!

Link to discord server

How to be happy

The happy path scenario is marked with a white background. In this case, you just need to use the Reserve method and learn to receive callbacks.

This is an AlzaBox API SDK process diagram

AlzaBoxClient

  • has contructor with parameters to set test or production environment.
  • has login method to authenticate by your credentials
  • has boxes and reservation properties which divide API methods by domain

Methods

  • Boxes.GetAll
  • Boxes.Get
  • Reservation.GetAll
  • Reservation.Get
  • Reservetion.Reserve
  • Reservation.Extend
  • Reservation.Cancel
  • Reservation.Lock
  • Reservation.Unlock
  • Courier.Get
  • Courier.Create

Credentials

If you don't have any credentials for connecting to AlzaBox API, please contact our business key account at ...

Sample usage

Base commuication client class is AlzaBoxClient. If you don't use any constructor parameters, the test url for IDM will be set as well as the test url for AlzaBox API.

var id = $"RES{Guid.NewGuid()}";
var alzaBoxClient = new AlzaBox.API.Clients.AlzaBoxClient();
var response0 = await alzaBoxClient.Login(args[0],args[1], args[2], args[3]);
var response1 = await alzaBoxClient.Boxes.GetAll();
var response2 = await alzaBoxClient.Reservations.Reserve(id, response1.Data[0].Id, $"PKG{Guid.NewGuid()}", 24);
var response3 = await alzaBoxClient.Reservations.GetStatus(id);
var response4 = await alzaBoxClient.Reservations.Extend(id, 48);
var response5 = await alzaBoxClient.Reservations.Lock(id);
var response6 = await alzaBoxClient.Reservations.Unlock(id);
var response7 = await alzaBoxClient.Reservations.Cancel(id);

Next steps

  • Completing the models property description
  • DTO for Callbacks
  • Nuget package
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.16 347 11/22/2022
0.0.15 310 11/4/2022
0.0.14 34,816 10/10/2022
0.0.13 398 10/10/2022
0.0.12 368 10/10/2022
0.0.11 468 9/20/2022
0.0.10 384 8/22/2022
0.0.9 389 8/22/2022
0.0.8 366 8/22/2022
0.0.7 378 8/22/2022
0.0.6 361 8/22/2022
0.0.5 373 8/20/2022