wikiedudashboard
https://github.com/wikieducationfoundation/wikiedudashboard
Ruby
Wiki Education Foundation's Wikipedia course dashboard system
Replica#api_get
Given an endpoint ('articles.php' or 'revisions.php') and a
query appropriate to that endpoint, return the parsed json response.
Example revisions.php query:
http://tools.wmflabs.org/wikiedudashboard/revisions.php?user_ids[0]=%27Example_User%27&user_ids[1]=%27Ragesoss%27&user_ids[2]=%27Sage%20(Wiki%20Ed)%27&start=20150105&end=20150108
Example revisions.php parsed response:
[{"page_id"=>"44962463",
"page_title"=>"Swarfe/ENGL-122-2014",
"page_namespace"=>"2",
"rev_id"=>"641297913",
"rev_timestamp"=>"20150106205746",
"rev_user_text"=>"Sage (Wiki Ed)",
"rev_user"=>"21515199",
"new_article"=>"false",
"byte_change"=>"38"},
{"page_id"=>"44962463",
"page_title"=>"Swarfe/ENGL-122-2014",
"page_namespace"=>"2",
"rev_id"=>"641298113",
"rev_timestamp"=>"20150106205902",
"rev_user_text"=>"Sage (Wiki Ed)",
"rev_user"=>"21515199",
"new_article"=>"false",
"byte_change"=>"-50"
}]Edit
git clone [email protected]:wikieducationfoundation/wikiedudashboard.git
cd wikiedudashboard
open lib/replica.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Replica-api_get-for-pr
# Commit to gitgit add lib/replica.rbgit commit -m "better docs for Replica#api_get"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Replica-api_get-for-pr
hub pull-request
# Celebrate!