public function execute() {
$params = $this->extractRequestParams();
- $res = array();
+ $res = array(
+ ApiResult::META_TYPE => 'assoc',
+ );
if ( $this->lacksSameOriginSecurity() ) {
$this->setWarning( 'Tokens may not be obtained when the same-origin policy is not applied' );
public function getCacheMode( $params ) {
return 'private';
}
+
+ public function getHelpUrls() {
+ return 'https://www.mediawiki.org/wiki/API:Tokens';
+ }
}