This Rust crate provides a client for the MediaWiki REST API.
Usage
use *;
// Create a client for the English Wikipedia REST API
let api = wikipedia.build;
// From the page "Rust (programming language)"...
let page = new;
// ...retrieve basic information and wikitext
let = page.get.await.unwrap;
// Edit an existing page
let token = "my_oauth_token";
let api = wikipedia
.with_access_token
.build;
let = page.get.await.unwrap;
page.edit
.await
.expect;
// Convert some wikitext to Parsoid HTML.
let html = wikitext2html.await.unwrap;
Status
File: completePage: completeRevision: completeTransform: completeMath: completeOAuth2: implemented (as part of token management for POST etc)CheckUser: not implementedEventBus: not implementedFlaggedRevs: not implementedGrowthExperiments: not implementedIPinfo: not implementedSecurePoll: not implementedSiteMap: not implementedCampaignEvents: not implementedWikimediaCampaignEvents: not implemented