Plugins Licensing - Metered License

Metered Plugin Licensing

Below are the straightforward steps to utilize the Metered class:

  1. Instantiate the Metered class.
  2. Provide the public and private keys using the setMeteredKey method.
  3. Perform the necessary processing tasks.
  4. Invoke the getConsumptionQuantity method of the Metered class.
  5. This will yield the quantity of API requests consumed up to that point.

Here’s a sample code illustrating how to set the metered public and private keys:

// Valid plugin license use example
Metered license = new Metered();
// Only one metered plug-in license is supported
license.SetMeteredKey("<your public key>", "<your private key>");

Please see more Plugin Licensing Use examples in C#.