Jump to content

Adobe Flex Library for WHMCS License Manager


Recommended Posts

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());
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated