The activatePK function is used to activate a MIPAR API license key using the command line. This only needs to be executed once per year to keep the licence active.

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 ››

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.