Please contact support@triagelogic.com to get your credentials and encryption key and correct urls for your account.
QA (Stable) - Live data
$server_url: https://mtc-qa.my247healthcare.com/cc/modules/apiv2
$server_url: https://mtc.my247healthcare.com/cc/modules/apiv2
We are using a token based API. For this you have to create a token and send this token when calling the API. This token will be validated up to two hours from the user's last activity. To create a token, you have to call the Token Create API with a username and encrypted password. For Encryption & Decryption of the password we are using openssl_encrypt & openssl_decrypt method, where a key is required, this key value is only known Sender to Receiver.
To create a new ticket you must send the token in the POST.
A ticket status can retrieved using the Token and TicketID
CipherMethod = “aes-256-cbc”
https://dev.my247healthcare.com/encrypt.php?p=password&c=cypher&k=key
&c and &k not needed if using the following defaults.
if(isset($Str) && trim($Str)!='' )
{
$CipherMethod=CosmicConfiguration::CipherMethod;
$EncryptionDecryptionKey=CosmicConfiguration::EncryptionDecryptionKey;
$iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($CipherMethod));
$encrypted = openssl_encrypt($Str, $CipherMethod, $EncryptionDecryptionKey, 0, $iv);
$data= base64_encode($encrypted . '::' . $iv);
return $data;
}
else
{
return '';
}
}
public static function DecryptionCustom($Str='')
{
if(isset($Str) && trim($Str)!='' )
{
$CipherMethod=CosmicConfiguration::CipherMethod;
$EncryptionDecryptionKey=CosmicConfiguration::EncryptionDecryptionKey;
list($encrypted_data, $iv) = explode('::', base64_decode($Str), 2);
if(isset($encrypted_data) && $encrypted_data!='' && isset($iv) && $iv!='')
{
$data= openssl_decrypt($encrypted_data, $CipherMethod, $EncryptionDecryptionKey, 0, $iv);
return $data;
}
else
{
return '';
}
}
else
{
return '';
}
}
Please check back to this document as we add additional details each week.