Get License Key Details and Product API Meta

Get License Key Details and Product API Meta

Example Get License Key Details and Product API Meta API Request #

// The post url is your WordPress website URL where the plugin is installed
// If the your WordPress installation is in a sub-folder the URL to that sub-folder
// should be used instead. Example: https://domain.ltd/my-sub-folder
$post_url = 'https://domain.ltd/';
 
 
$parameters = array(
    // The API command
    // The fslm_v2_api_request parameter takes one of the following values
    // verify, activate, deactivate, details, extra_data
    'fslm_v2_api_request' => 'license_details_with_product_data',
 
    // Your API Key
    // You can set your API key in the page
    // License Manager > Settings > API
    'fslm_api_key'        => '0A9Q5OXT13in3LGjM9F3W',
 
    // The License Key
    'license_key'         => 'FFFF-FFFF-FFFF-FFFF',
 
    // The device ID
    // The Device ID is optional, but if it is used and the license keys was activated with it
    // it becomes required, a license key activated with a Device ID can't be deactivated
    // without it and can't be activated again without it.
    // The device ID can be anything you want, its role is to identify the "Device",
    //  "Machine" or "Domain" where the license was activated.
    'device_id'           => 'userdomain.ltd'
);
 
 
//url-ify the data for the POST
$fields_string = "";
foreach($parameters as $key=>$value) {
    $fields_string .= $key.'='.$value.'&';
}
rtrim($fields_string, '&');
 
// Open connection
$ch = curl_init();
 
// Set the url, number of POST vars, POST data
curl_setopt($ch, CURLOPT_URL, $post_url);
curl_setopt($ch, CURLOPT_POST, count($parameters));
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 
// Execute post
$result = curl_exec($ch);
curl_close($ch);
 
// Display the request result
echo $result;

License Details

{
    "license_id": "339",
    "product_id": "14",
    "variation_id": "0",
    "license_key": "FFFF-FFFF-FFFF-FFFF",
    "image_license_key": "",
    "license_status": "available",
    "owner_first_name": null,
    "owner_last_name": null,
    "owner_email_address": null,
    "delivre_x_times": "1",
    "remaining_delivre_x_times": "1",
    "max_instance_number": "0",
    "number_use_remaining": "0",
    "activation_date": null,
    "creation_date": "2024-08-25",
    "expiration_date": null,
    "valid": "0",
    "order_id": "0",
    "sold_date": null,
    "device_id": null,
    "subscription_id": "0",
    "pool_id": "0",
    "product_data": {
        "software_name": "Test",
        "software_id": "1542",
        "software_version": "2.5.6",
        "software_author": "SCODEWARE",
        "software_url": "https://scodeware.com",
        "software_last_update": "2024-12-24",
        "software_extra_data": {
            "example_extra_data": [
                123,
                456,
                789
            ]
        }
    }
}

Get License Key Details and Product API Meta
We use cookies for analytics. By using this website, you agree to our use of cookies.