dijs / wiki

Wikipedia Interface for Node.js
MIT License
313 stars 62 forks source link

Add custom query option for page #120

Closed sarangjo closed 5 years ago

sarangjo commented 5 years ago

The full suite of functionality for the MediaWiki API is far greater than the existing API that this library provides. While it is very useful to create corresponding functions that make it simple for a user to get information, it would be nice to have a catch-all custom function that allows a user to query any of those MediaWiki endpoints.

For a start, this could be accomplished for the parse endpoints.

dijs commented 5 years ago

This technically already existed, I just didn't have the method accessible.

I have created a general wiki().api method which you can pass wikimedia parameters to and get the raw response back.

If you have specific API endpoints in mind that you need, please share them.

sarangjo commented 5 years ago

Nothing specific, I think just exposing the api method might be valuable!