Skip to content

C++ Example that utilizes the Digital License Manager API using DLM-Cpp library + RapidJSON

Notifications You must be signed in to change notification settings

digital-license-manager/dlm-cpp-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital License Manager C++ Example

This is simple example that covers all the required operations to successfully show, activate, validate and deactivate a license key.

Getting started

To get started using this first clone the project:

git clone --recursive https://github.com/ideologix/dlm-cpp-example.git

Then follow the steps:

  1. Install required libcurl library
  2. Set up the API connection in main.cpp with your api details
  3. Set up SampleKey variable in main.cpp with your key
  4. To run the projects, execute the following:
cmake build .
bash dlm_examples

Sample output:

====== Digital License Manager Example ======
Checking License Key
- License is K2CH-GIG1-IGC3-2N1K valid.
Activating token
- License K2CH-GIG1-IGC3-2N1K activated...
- Token a12fdde7d50aee0123d7741c351c55a8c45cc129 SET.
Validating token
- Token a12fdde7d50aee0123d7741c351c55a8c45cc129 is valid...
- License K2CH-GIG1-IGC3-2N1K is valid.
Deactivating token
- Token a12fdde7d50aee0123d7741c351c55a8c45cc129 deactivated...

Requirements

1. libcurl

The libcurl library is required!

2. dlm-cpp

The dlm-cpp class library is required.

Note: The library is already included in this project, so no further action is needed.

3. rapidjson

The rapidjson json parser library is required.

Note: The library is already included in this project, so no further action is needed.

License

Copyright (C) 2024 - Darko Gjorgjijoski
Copyright (C) 2024 - IDEOLOGIX MEDIA DOOEL

Licensed under GPLv2

About

C++ Example that utilizes the Digital License Manager API using DLM-Cpp library + RapidJSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published