Last modified: 2013-03-27 16:31:05 UTC
I'm trying to write a script that looked at the AFTv5 feedback, except the API is giving me back XML data when I asked for JSON. https://en.wikipedia.org/w/api.php?action=query&list=articlefeedbackv5-view-feedback&afvfpageid=3235587&format=jsonfm It's also giving me what appear to be links to different actions (like "feature this post", "request oversight", etc), which isn't what the module is supposed to do.
Legoktm: I'm getting JSON output - does it still output XML for you? data['articlefeedbackv5-view-feedback']['feedback'] contains HTML though, maybe this is what's causing the confusion? It's the HTML for the Special page, for the feedback requested. Also note that, as part of refactoring some code, there are some pending changes to these API endpoints (e.g. for this particular API, the "continue" parameter will no longer be used, but "offset" - https://gerrit.wikimedia.org/r/#/c/24264/33/api/ApiViewFeedbackArticleFeedbackv5.php) - this may require your scripts to be adjusted if and when these changes are merged