added a getApiKey method to Client.php