Management SDK Configuration and Usage

This guide is designed to help you configure your application and start using LicenseSpring Management SDK functionality.

As you navigate through this tutorial, you'll acquire the knowledge to issue licenses and manage orders within your .NET application.

Configuration

To initialize the SDK, you must fill in your LicenseSpring Management API key. It can be found on your LicenseSpring account under Settings->Keys:

circle-info

Note: API keys for licensing and management SDKs are different.

Copy this value and create the configuration as shown below:

Now you can create a ManagementService using this configuration object:

Creating licenses

The following stepper shows the typical flow to create key-based licenses and create an order.

1

Generate license keys

Generate one or more license keys for the product:

2

Prepare LicenseDetails

Create a LicenseDetails object and set the required properties:

3

Create the order

Create an order with the license details:

You can also provide order info such as customer:

Managing orders

Use the returned order id to get order information and manage the order. Example: get licenses from the order.

You can also append licenses to an existing order. Example flow:

1

Generate additional keys

2

Prepare new LicenseDetails

3

Append to existing order

Pass the existing order id and customer to create/update the order with the new license:

circle-info

Note: one order cannot contain key-based and user-based licenses. It contains licenses for one product.

User-based licenses

Creating a user-based license is similar but you do not generate license keys. Ensure the product is user-based.

To assign a user to the created license, retrieve the license via the order ID (see Managing orders) and assign the user by license ID:

Was this helpful?