- Notifications
You must be signed in to change notification settings - Fork92
Demo apps and code snippets in Python, Javascript and PHP demonstrating how to use various modules of the MediaWiki Action API
License
wikimedia/mediawiki-api-demos
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
TheMediaWiki Action API is a web service that allows access to some wiki-features like authentication, page operations, and search. It can provide meta information about the wiki and the logged-in user. This repository contains code snippets and demo apps in various programming languages to assist developers for easy use of various modules of the API.
ℹ️View a showcase of interactive demo apps built using the API on Wikimedia Toolforge:https://tools.wmflabs.org/apps-gallery/
- Holidays viewer:Demo app that fetches the holidays for a given date from Wikipedia, with an option to login to add new holidays. The app usesAPI:Parse to fetch the holidays andAPI:Edit to add a new holiday.
- Nearby places viewer:Demo of geo search for wiki pages near a location using theGeolocation API and MediaWiki Action API'sGeosearch module.
- Picture of the day viewer:Demo app that usesprop=images module to fetch Wikipedia's Picture of the Day (POTD) from a template page and displays it on a webpage. The app also allows users to go backward or forward a date to view other POTD.
- User contributions feed:Demp app that useslist=usercontribs module to fetch the top 50 edits made by a user.
- View more demo apps
$ git clone https://github.com/wikimedia/mediawiki-api-demos.git$ cd mediawiki-api-demosFor running python code samples: $ cd python$ python3 filename.py Note: Install any necessary python modules with pip and enter any credentials required in the file to run the sample codeFor running javascript code samples:$ cd javascript$ node filename.jsNote: Install any necessary node modules with npm and enter any credentials requiredin the file to run the sample codeFor running php code samples:$ cd php$ php filename.phpNote: Install necessary modules by `apt-get install php-cli php-curl` and enter any credentialsrequired in the file to run the sample codeAbout
Demo apps and code snippets in Python, Javascript and PHP demonstrating how to use various modules of the MediaWiki Action API
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.