Members Account Licensing API base URL: https://my.interfaceware.com
Get List of Entitlements GET /api
This API method returns a JSON object containing a list of license types and select the ID for the type you want to activate.
Parameters:
product: The product you want licenses for -
IguanaX
stringtoken: Your authentication token string (from the first call)
method: The API method
license.listentitlements
string
Sample curl command calling the API and parsing the selected license entitlement id from the response:
LicenseName="IguanaX Test" #change to name of license type to activate EntitlementID=`curl -k -X POST "https://my.interfaceware.com/api?method=license.listentitlements&product=IguanaX&token=<IguanaToken>" | jq -r --arg name "$LicenseName" '.data[] | select(.name==$name) | .id'`
Response:
{ "data": [ { "entitlements_total": "3", "name": "IguanaX Dev", "num_components": "50", "id": "1", "entitlements_used": "1", "license_expiry": "0", "log_search": "365" }, { "entitlements_total": "3", "name": "IguanaX Test", "num_components": "50", "id": "2", "entitlements_used": "1", "license_expiry": "0", "log_search": "365" }, { "entitlements_total": "3", "name": "Iguana X Prod", "num_components": "50", "id": "3", "entitlements_used": "1", "license_expiry": "0", "log_search": "365" }, ], "status": "ok" }