Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 722 Bytes

File metadata and controls

30 lines (21 loc) · 722 Bytes

NetLicensing Python Demo

Set credentials with environment variables:

export NETLICENSING_API_KEY="..."
export NETLICENSING_VENDOR_NUMBER="..."
export NETLICENSING_BASE_URL="https://go.netlicensing.io/core/v2/rest"

For the public NetLicensing demo vendor, use username/password authentication:

export NETLICENSING_USERNAME="demo"
export NETLICENSING_PASSWORD="demo"

Validate a licensee:

python demo/app.py validate CUSTOMER-1 --product-number PRODUCT-1 --module MODULE-1 --node-secret machine-id

Create a NetLicensing Shop token:

python demo/app.py shop-token CUSTOMER-1 --product-number PRODUCT-1

The demo prints the validation result or the generated shopURL.