GetPKeyDetails PHP

Hello, I can not seem to get the method to recognize my pkey. I always get an error code of 1. I have tried everything, FindPKey works fine but not this method. Can you see something wrong with my code here? Thanks.

LimeLM::SetAPIKey(self::$limelm_apiKey);$xml = new SimpleXMLElement(LimeLM::GetPKeyDetails($pkey));

if ($xml['stat'] == 'ok'){ echo 'ok';}else //failure{ if ($xml->err['code'] == '1') { } else // something else went wrong { }}LimeLM::CleanUp();

GetPKeyDetails() requires the pkey_id (not the pkey). See the function definition in LimeLM.php:

public static function GetPKeyDetails($pkey_id)

So how do you get the pkey_id from the pkey? Luckily, there's a function for that:

public static function GetPKeyID($version_id, $pkey)

Thanks I actually just saw that a few seconds ago. Thanks for the help.