HomagGroup.DigitalFactory.ApiGateway.Client
2.0.27
Prefix Reserved
See the version list below for details.
dotnet add package HomagGroup.DigitalFactory.ApiGateway.Client --version 2.0.27
NuGet\Install-Package HomagGroup.DigitalFactory.ApiGateway.Client -Version 2.0.27
<PackageReference Include="HomagGroup.DigitalFactory.ApiGateway.Client" Version="2.0.27" />
paket add HomagGroup.DigitalFactory.ApiGateway.Client --version 2.0.27
#r "nuget: HomagGroup.DigitalFactory.ApiGateway.Client, 2.0.27"
// Install HomagGroup.DigitalFactory.ApiGateway.Client as a Cake Addin #addin nuget:?package=HomagGroup.DigitalFactory.ApiGateway.Client&version=2.0.27 // Install HomagGroup.DigitalFactory.ApiGateway.Client as a Cake Tool #tool nuget:?package=HomagGroup.DigitalFactory.ApiGateway.Client&version=2.0.27
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
- Clone the repository
git clone https://dev.azure.com/homag-group/FOSSProjects/_git/homag-api-gateway-client
cd homag-api-gateway-client
Get your personal access token from https://my.tapio.one
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)
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.
Click on Edit and click on Add. Insert a name for your token, confirm and copy the token to your clipboard.
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
- 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 } }
Build the solution
dotnet build
- 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 | Versions 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. |
-
.NETFramework 4.6.2
- Microsoft.Extensions.Caching.Abstractions (>= 2.1.2)
- Microsoft.Extensions.Logging.Abstractions (>= 2.1.1)
- Newtonsoft.Json (>= 13.0.1)
-
.NETStandard 2.0
- Microsoft.Extensions.Caching.Abstractions (>= 2.1.2)
- Microsoft.Extensions.Logging.Abstractions (>= 2.1.1)
- Newtonsoft.Json (>= 13.0.1)
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.28 | 89 | 12/17/2024 |
2.0.27 | 203 | 11/19/2024 |
2.0.26 | 120 | 11/19/2024 |
2.0.25 | 546 | 9/24/2024 |
2.0.24 | 745 | 8/19/2024 |
2.0.23 | 123 | 7/4/2024 |
2.0.22 | 952 | 5/21/2024 |
2.0.21 | 119 | 5/9/2024 |
2.0.20 | 112 | 5/8/2024 |
2.0.19 | 216 | 1/8/2024 |
2.0.18 | 175 | 10/11/2023 |
2.0.17 | 165 | 10/10/2023 |
2.0.16 | 156 | 10/5/2023 |
2.0.15 | 155 | 9/21/2023 |
2.0.14 | 172 | 9/13/2023 |
2.0.13 | 182 | 9/7/2023 |
2.0.12 | 151 | 9/7/2023 |
2.0.11 | 375 | 12/15/2022 |
2.0.10 | 352 | 12/9/2022 |
2.0.9 | 416 | 11/11/2022 |
2.0.8 | 489 | 10/20/2022 |
2.0.7 | 473 | 10/17/2022 |
2.0.6 | 444 | 10/12/2022 |
2.0.5 | 439 | 10/5/2022 |
2.0.4 | 478 | 9/7/2022 |
2.0.3 | 462 | 9/1/2022 |
2.0.2 | 463 | 8/31/2022 |
2.0.1 | 499 | 7/28/2022 |
2.0.0 | 504 | 6/9/2022 |
1.0.0 | 508 | 6/9/2022 |