Marketplace API

Allows you to access your digital goods licenses as well as download latest versions.

This API gives you access to your digital goods licenses and files.

The marketplace API type responds to GET requests via HTTPS and will return JSON results.

Endpoint

https://api.digitalpoint.com/v1/marketplace/{action}.json

Actions

Valid actions for this API type:

branding

Checks if a domain is owned by a user with a branding-free license (this API call does NOT require authentication).

Required parameters: item_id, url (full URL of the site being checked)
download

Returns the file requested (file will be base64 encoded).

Required parameters: item_id
licenses

Retrieve a list of valid licenses for your account.

Required parameters: category_id (parent category IDs are not valid)

Example

If you wanted to get a list of your licenses for XenForo plug-ins, you could do something like this... ($accessId and $secretKey come from your account API settings)

PHP example

$expires = time() + 300;
$signature = base64_encode(hash_hmac('sha1', $accessId . '-' . $expires, $secretKey, true));
$request = http_build_query(
    array (
        'category_id' => 12
    )
, '', '&');
$ch = curl_init('https://api.digitalpoint.com/v1/marketplace/licenses.json?' . $request);
curl_setopt_array($ch, array(
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => array(
        "Auth-Access-Id: $accessId",
        "Auth-Signature: $signature",
        "Auth-Expires: $expires"
    )
));
$results = json_decode(curl_exec($ch));
curl_close($ch);