Quick start: first call in 15 minutes

Prev Next

For: Integrators

Goal: retrieve the first edgeband types from materialManager.

1. Obtain credentials

You need the SubscriptionId (username) and an authorization key (password). See Authentication for instructions on how an administrator creates both in tapio.

2. Set up the client

Install the NuGet package:

dotnet add package HomagGroup.HomagConnect.MaterialManager.Client

Create the client:

using HomagConnect.MaterialManager.Client;

var subscriptionId = Guid.Parse("<SubscriptionId>");
var authorizationKey = "<Berechtigungsschlüssel>";

var client = new MaterialManagerClient(subscriptionId, authorizationKey);

All calls go to https://connect.homag.cloud and use HTTP Basic authentication: username = SubscriptionId, password = authorization key.

Authorization: Basic base64(<SubscriptionId>:<Berechtigungsschlüssel>)
Accept: application/json

3. Make your first call

var edgebandTypes = await client.Material.Edgebands.GetEdgebandTypes(take: 10);

foreach (var edgebandType in edgebandTypes)
{
    Console.WriteLine($"{edgebandType.EdgebandCode}: {edgebandType.Thickness} mm");
}
curl -u "<SubscriptionId>:<Berechtigungsschlüssel>" \
  "https://connect.homag.cloud/api/materialManager/materials/edgebands?take=10&skip=0"

Result: A list of edgeband types as JSON or EdgebandType objects. See Data model for the fields.

Having trouble?

Response Cause
401 Unauthorized SubscriptionId or authorization key is incorrect, or the key has been revoked
403 Forbidden The Connect interface is not licensed for this app

See Troubleshooting for more information.

Next steps