FuseLicense
What is FuseLicense?
Well, FuseLicense is a license API that is based on the
You must be registered for see links
.Documentation
Before you can use the API, you need a private and public key. You can generate them
You must be registered for see links
.You can use cURL or other conventional methods to send the POST data to the API Server.
The API Server will be
You must be registered for see links
Adding A New License Code
To do that, you can send these POST data to the API. Of course, you need your private key.
array(
'cmd' => 'fuselicense' //The API you want to have contact with.
'action' => 'new_license' //Give a command to add a new license.
'private_key' => $private_key //Please replace $private_key with your private key.
);
If the process is a success, the server will return a $string of the license code. Be sure to store that license code somewhere.
If the process is a failure, the server will return a $string of "false". Lower-case.
Checking If The License Code Is Correct
To do that, you can send these POST data to the API. Of course, you need the license code.
array(
'cmd' => 'fuselicense' //The API you want to have contact with.
'action' => 'check_license' //Give a command to check the license code given.
'license_key' => $license_code //Please replace $license_code with the license code given when using "new_license"
);
If the process is a success, the server will return a $string of "true". Lower-case.
If the process is a failure, the server will return a $string of "false". Lower-case.
Reference Class
If you have no idea what is going on, you can download the class file below as a reference. All is coded in PHP.
Download: [
You must be registered for see links
]Hope you will find this simple script useful. More features will be added in the future.