public function getAPIKey($URL, $username, $password) { // set parameters $parameters['siteurl'] = (string) $URL; // make the call $result = $this->doCall('apikey', $parameters, 'GET', true); // return the result return $result['ApiKey']; }