altId
By default, MediaBooster's key system identifies clients by their public network address. It is reliable for common network conditions, but sometimes it may not be enough. It is good practice to set a backup client identifier.
You should have a key system page already. In this example, we'll use
https://mboost.me/k/abc
Create a unique client identifier
If you have an account system tied to your software, you might consider using their account user id as their key system identifier. Otherwise, generate a unique string that is unlikely to have already been used in the past 30 minutes.
You might consider using this Javascript function which generates a string of 16 random alphanumeric characters.
const generateAltId = () => {
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
let result = '';
for (let i = 0; i < 16; i++) {
result += characters.charAt(Math.floor(Math.random() * characters.length));
}
return result;
}
Lets assume your unique key system client identifier is ABCDEFGHIJKLMNOP
Attach the unique client identifier to the key system page
Your key system page link should now look like
https://mboost.me/k/abc?altId=ABCDEFGHIJKLMNOP
Checking key system completion using altId
curl -X POST https://api.mboost.me/v1/keyaccess/usekey?pageid=abc&altId=ABCDEFGHIJKLMNOP