exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
/**
* Check a user's credentials. Returns an HTTP 200 OK response code and a
* representation of the requesting user if authentication was successful;
*
* Check whether the credentials are valid and output the result
*
- * @param array $args $_REQUEST data (unused)
- *
* @return void
*/
- function handle($args)
+ protected function handle()
{
- parent::handle($args);
+ parent::handle();
if (!in_array($this->format, array('xml', 'json'))) {
- // TRANS: Client error displayed trying to execute an unknown API method verifying user credentials.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
- return;
}
$twitter_user = $this->twitterUserArray($this->auth_user->getProfile(), true);
*
* @return boolean true
*/
- function isReadOnly($args)
+ function isReadOnly(array $args=array())
{
return true;
}