Displaying RSS feed in MediaWiki pages
I am trying to display my collections as an RSS feed within a MediaWiki page. I have installed the RSS extension for MediaWiki.
The following command will work:
<rss>https://api.zotero.org/users/Usr_Name/collections/Collection_Key/items?key=Key_Name</rss>
However, when I tried adding many of the query parameters listed in
https://www.zotero.org/support/dev/web_api/v3/basics, I get an error saying:
Failure to load RSS from: <URL>, Error parsing XML
Some query parameters, such as order=title and format=atom, are parsed correctly. Others parameters, such as v=3, format=bib, are not and the error message is displayed.
Has anyone else tried to do similar things or know how to address this issue? Thanks.
The following command will work:
<rss>https://api.zotero.org/users/Usr_Name/collections/Collection_Key/items?key=Key_Name</rss>
However, when I tried adding many of the query parameters listed in
https://www.zotero.org/support/dev/web_api/v3/basics, I get an error saying:
Failure to load RSS from: <URL>, Error parsing XML
Some query parameters, such as order=title and format=atom, are parsed correctly. Others parameters, such as v=3, format=bib, are not and the error message is displayed.
Has anyone else tried to do similar things or know how to address this issue? Thanks.
v=3 by itself just sets the API to version three. As the documentation says, without other specifications it returns JSON, which, again, is not XML, so you'd expect an XML parsing error.
For your purposes (i.e. generating RSS/Atom), all API requests should include format=atom and you can then specify whatever else you need.