Lists users plans
none
curl -u "user:pass" https://crm.innovatrics.com/api/license/list.xml
will give a response in format:
<?xml version="1.0" encoding="UTF-8"?> <license-rights type="array"> <license-right> <id type="integer">1</id> <name>IDKit PC Royalty Free</name> <used-license-count type="integer">10</used-license-count> <total-license-count type="integer">100</total-license-count> <user-records type="integer">50000</user-records> <note>Test Plan</note> </license-right> <license-right> <id type="integer">2</id> <name>ANSI & ISO Mobile Package 10</name> <user-records type="integer">1</user-records> <used-license-count type="integer">1</used-license-count> <total-license-count type="integer">10</total-license-count> <note>Test Plan2</note> </license-right> </license-rights>
Shows attributes of users plan. User must be owner of this plan, otherwise throws an error
id
: id of plancurl -u "user:pass" https://crm.innovatrics.com/api/license/show/7.xml
Result should be
<license-right> <id type="integer">7</id> <total-license-count type="integer" nil="true"></total-license-count> <user-records type="integer">50000</user-records> <name>IDKit PC Royalty Free</name> <used-license-count type="integer">16</used-license-count> <note>Test Plan</note> </license-right>
List already generated licenses and their attributes
id
: id of a plancurl -u "user:pass" https://crm.innovatrics.com/api/license/generated_licenses/7.xml
<?xml version="1.0" encoding="UTF-8"?> <generated-licenses type="array"> <generated-license> <hwid nil="true"></hwid> <id type="integer">4</id> <valid-until type="date" nil="true"></valid-until> <note>Test License</note> </generated-license> ... </generated-license>
Generates a license from a plan. For downloading the license use generated_license/download
id
: id of a planhwid
: hardware id of the machine the key is generated fornote
: note for a licenseid
: id of generated license license-key
: license key in Base64 formatcurl -u "user:pass" "https://crm.innovatrics.com/api/license/generate/7.xml?hw_id=HWID123456¬e=Test%20License"
<?xml version="1.0" encoding="UTF-8"?> <generated-license> <hwid>HWID123456</hwid> <id type="integer">2041</id> <valid-until type="date" nil="true"></valid-until> <license-key>SUNfTAMARAAAAAAAAABIV0lEMTIzNDU2AAAAAAAAAAAAAGNsaWVudAAAAAAA...5gsjc7A==</license-key> <note>Test License</note> </generated-license>
id
: id of license (fe. obtained via license/generated_licenses)curl -u "user/token:821319312873812421" https://crm.innovatrics.com/api/generated_license/show/2041.xml
<?xml version="1.0" encoding="UTF-8"?> <generated-license> <hwid>123</hwid> <id type="integer">2041</id> <license-key>SUNfTAMARAAAAAAAAABIV0lEMTIzNDU2AAAAAAAAAAAAAGNsaWVudAAAAAAA...5gsjc7A==</license-key> <valid-until type="date" nil="true"></valid-until> <note>Test License</note> </generated-license>
id
: id of licensecurl -u "user/token:821319312873812421" https://crm.innovatrics.com/api/generated_license/download/7 > iengine.lic
Unlike other API calls, this methods returns the iengine.lic
file instead of XML.