You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Infoboxer.wiki('https://esolangs.org/w/api.php').get('Category:Implemented')# => #<Page(title: "Category:Implemented", url: "https://esolangs.org/wiki/Category:Implemented"): The languages in this category ...>
The URL should be the base URL for the API. It can be /w/api.php, or just /api.php, or sometimes /wiki/api.php, so we don't try to guess. Though the error message should definitely be more obvious! (Like, check the most basic response and say "It is not an API endpoint" if it is wrong)
that needs this suffix too but I didn't realise I could come back to the Infoboxer gem with this edit because I didn't even notice it since I'm not generally familiar with Mediawiki API.
Thanks for very quick response. The ticket can be closed if you are not going to keep it as a reminder to improve the error message or something.
The page says:
Byebug says the request is
#<MediaWiktory::Wikipedia::Actions::Query {"meta"=>"siteinfo"}>
The text was updated successfully, but these errors were encountered: