HomagGroup.DigitalFactory.ApiGateway.Client 2.0.19

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package HomagGroup.DigitalFactory.ApiGateway.Client --version 2.0.19
NuGet\Install-Package HomagGroup.DigitalFactory.ApiGateway.Client -Version 2.0.19
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="HomagGroup.DigitalFactory.ApiGateway.Client" Version="2.0.19" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HomagGroup.DigitalFactory.ApiGateway.Client --version 2.0.19
#r "nuget: HomagGroup.DigitalFactory.ApiGateway.Client, 2.0.19"
#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 HomagGroup.DigitalFactory.ApiGateway.Client as a Cake Addin
#addin nuget:?package=HomagGroup.DigitalFactory.ApiGateway.Client&version=2.0.19

// Install HomagGroup.DigitalFactory.ApiGateway.Client as a Cake Tool
#tool nuget:?package=HomagGroup.DigitalFactory.ApiGateway.Client&version=2.0.19

HOMAG API Gateway Client

The following repository contains the HOMAG API Gateway Client, the documentation and some samples for the usage.

With these packages you can easily integrate different workflows of HOMAG applications into your own application. For further details and prerequisites for using the API client, please see the documentation.

TL;DR

mkdir test-homag-api-gateway
dotnet new console
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
dotnet add package HomagGroup.DigitalFactory.ApiGateway.Client
using HomagGroup.DigitalFactory.ApiGateway.Client.Services;
using System.Text;

Console.WriteLine("Hello at the HOMAG API Gateway");

var client = new HttpClient();
client.BaseAddress = new Uri("https://api-gateway.homag.cloud");
Console.WriteLine("Please insert your token:");
var token = Console.ReadLine();
var credentials = Convert.ToBase64String(Encoding.UTF8.GetBytes($"8878FEF1-E271-402D-B3C1-296FCBF7A854:{token}"));
client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", credentials);

var productionServices = new ProductionServices(client);
var workplaces = await productionServices.PMGetFeedbackWorkplaces();

Console.WriteLine($"We found {workplaces.Workplaces.Count} workplaces in your subscription.");
dotnet run

Getting started

  1. Clone the repository
git clone https://dev.azure.com/homag-group/FOSSProjects/_git/homag-api-gateway-client
cd homag-api-gateway-client
  1. Get your personal access token from https://my.tapio.one

    1. If you know your Subscription ID you can just insert this in the link below and continue with 3.

      [https://my.tapio.one/subscriptions/<Subscription ID>/applications/74fbbd3c-af43-4630-928b-e4022995fd02/addons/0e120a01-126a-4a19-a9b8-bbfc543345c1](https://my.tapio.one/subscriptions/<Subscription ID>/applications/74fbbd3c-af43-4630-928b-e4022995fd02/addons/0e120a01-126a-4a19-a9b8-bbfc543345c1)

    2. If you don't know your Subscription ID just go to https://my.tapio.one. Select your subscription, select Applications, open HOMAG productionManager and click on HOMAG File Agent.

    3. Click on Edit and click on Add. Insert a name for your token, confirm and copy the token to your clipboard.

    4. Copy Samples/appsettings.json to Samples/appsettings.test.json

    cp Samples/csharp/HomagGroup.ApiGateway.Client.Samples/appsettings.json Samples/csharp/HomagGroup.ApiGateway.Client.Samples/appsettings.test.json
    
    1. Insert your access token in the Samples/appsettings.test.json. It should look like below.
    {
        "HomagApiGateway":
        {
            "BaseUrl": "https://api-gateway.homag.cloud",
            "Username": "8878FEF1-E271-402D-B3C1-296FCBF7A854", // Keep this username for your requests
            "Token": "" // Use your personal access token from tapio
        }
    }
    
  2. Build the solution

dotnet build
  1. Run tests
dotnet test --filter TestCategory!=UserTestNoInteractionNeeded

Contribute

If you find anything, feel free to contribute to this repository. We are happy for every improvement ❤️.

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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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
2.0.19 174 1/8/2024
2.0.18 137 10/11/2023
2.0.17 131 10/10/2023
2.0.16 119 10/5/2023
2.0.15 118 9/21/2023
2.0.14 137 9/13/2023
2.0.13 144 9/7/2023
2.0.12 113 9/7/2023
2.0.11 340 12/15/2022
2.0.10 316 12/9/2022
2.0.9 380 11/11/2022
2.0.8 456 10/20/2022
2.0.7 436 10/17/2022
2.0.6 406 10/12/2022
2.0.5 405 10/5/2022
2.0.4 442 9/7/2022
2.0.3 426 9/1/2022
2.0.2 420 8/31/2022
2.0.1 461 7/28/2022
2.0.0 471 6/9/2022
1.0.0 470 6/9/2022