The activatePK
function is used to activate a MIPAR API license key using the command line.
Arguments
Args:
productKey: MIPAR API product key formatted as raw string.
Returns:
errorStatus: dictionary that contains the errorFlag and errorMessage
errorFlag: 0 - no error, 1 - an error occurred
errorMessage: error string of error that occurred during activation
Syntax
errorStatus = mipar.activatePK(productKey)
Example
# initialize engine and licence manager
import miparAPI
mipar = miparAPI.initialize()
productKey = r'12345678-abcd-1234-abcd-123456789101'
errorStatus = mipar.activatePK(productKey)
Need more help with this?
Chat with an expert now ››