A library for interacting with MediaWiki API from Ruby. Uses adapter-agnostic Faraday gem to talk to the API.
Add this line to your application's Gemfile:
gem "mediawiki_api"
And then execute:
$ bundle
Or install it yourself as:
$ gem install mediawiki_api
require "mediawiki_api"
client = MediawikiApi::Client.new("http://127.0.0.1/w/api.php")
client.log_in("username", "pass")
client.create_page("Test api", "lalala '''test'''")
client.delete_page("Test api", "reason for deleting")
- Fork it ( http://github.com//mediawiki_api/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am "Add some feature"
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request