When embedding Autochartist content, you will be required to generate a security token. The token is of the form:
MD5([UserID]|[AccountType]|[Expiry][SecretKey])
UserID – unique identifier of the user for which you are generating the token
AccountType – 0 = LIVE, 1 = DEMO
Expiry – Unix timestamp of when this token will expire
SecretKey – the secret key provided to you during your onboarding process
Notes:
Here is some example code in PHP code:
<?php $expiryDate = time() + (3 * 24 * 60 * 60); $userid = “userid”; $accountType = “0”; $secretKey = “secretkey”; $token = md5(“${userid}|${accountType}|${expiryDate}${secretKey}”); echo $token; ?>
Use this tool to generate a token using information Autochartist provided you.