Oups, sorry for the mess. I thought I'm sending last one to the list.
>> > There probably should be an extra function in main to generate >> output >> > for a given format in addition to $api->getResultData() : >> > $api->getFormattedResult($format) >> >> This would be a very usefull method. >> >> Or better - let API return a description what has been returned. >> getResultDescription, twin brother to getParamDescription? > Why would api describe what it has returned?? The requestor better > know what it asked for :). Two scenarios: - flash widget as a "multi-purpose" client. User can ask for several things. - multi api call. User asks for eg. recent changes but from more than one wiki. If they run different MW codebase results will have slightly different form. Btw. api.php?action=query&meta=siteinfo&siprop=apiversion would be usefull as well as with different MW even calls have different params, przem. _______________________________________________ Mediawiki-api mailing list [email protected] http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
