stephen_c01 Posted May 1, 2012 Share Posted May 1, 2012 I wrote a Flex Library for interfacing with WHMCS License Manager for my AIR projects. whmcsLicense.swc.zip It supports all features as the PHP example code, but the off-line key is not compatible with the PHP version as different date format is used. Last, the results are returned as a XML object and not an array. Sample Code import net.mthosting.WhmcsLicense; var test:WhmcsLicense = new WhmcsLicense("WHMCS URL","KEY","IP","URL","DIRECTORY"); //The callback must be used because we might have to wait for the HTTP request. test.check_license(CALLBACK,"LICENSEKEY", localkey); public function licCheck():void { trace(test.results.toString()); } 0 Quote Link to comment Share on other sites More sharing options...
wsa Posted May 2, 2012 Share Posted May 2, 2012 Am also try to got this licences code to work with my air project 0 Quote Link to comment Share on other sites More sharing options...
stephen_c01 Posted May 2, 2012 Author Share Posted May 2, 2012 In the call back the results are stored in results.status. If you do something like the following to check the key. if(results.status == "Active") { //legit code, } 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.