HomagGroup.DigitalFactory.ApiGateway.Client 2.0.24

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package HomagGroup.DigitalFactory.ApiGateway.Client --version 2.0.24                
NuGet\Install-Package HomagGroup.DigitalFactory.ApiGateway.Client -Version 2.0.24                
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.24" />                
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.24                
#r "nuget: HomagGroup.DigitalFactory.ApiGateway.Client, 2.0.24"                
#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.24

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

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.25 489 9/24/2024
2.0.24 734 8/19/2024
2.0.23 112 7/4/2024
2.0.22 943 5/21/2024
2.0.21 107 5/9/2024
2.0.20 103 5/8/2024
2.0.19 209 1/8/2024
2.0.18 168 10/11/2023
2.0.17 158 10/10/2023
2.0.16 149 10/5/2023
2.0.15 148 9/21/2023
2.0.14 165 9/13/2023
2.0.13 175 9/7/2023
2.0.12 144 9/7/2023
2.0.11 368 12/15/2022
2.0.10 345 12/9/2022
2.0.9 409 11/11/2022
2.0.8 482 10/20/2022
2.0.7 466 10/17/2022
2.0.6 437 10/12/2022
2.0.5 432 10/5/2022
2.0.4 471 9/7/2022
2.0.3 455 9/1/2022
2.0.2 450 8/31/2022
2.0.1 492 7/28/2022
2.0.0 497 6/9/2022
1.0.0 501 6/9/2022