/**
  * Constructor with authentication and configuration parameters
  */
 public function __construct($username = NULL, $key = NULL)
 {
     Configuration::$username = $username ? $username : Configuration::$username;
     Configuration::$key = $key ? $key : Configuration::$key;
 }