GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - magnusmanske/mediawiki_rest_api: A Rust client for the MediaWiki REST API

BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
test_data
test_data
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE-APACHE2
LICENSE-APACHE2
 
 
LICENSE-MIT
LICENSE-MIT
 
 
README.md
README.md
 
 

Repository files navigation

Crates.io Crates.io License License

This Rust crate provides a client for the MediaWiki REST API.

Usage

use mediawiki_rest_api::prelude::*;

// Create a client for the English Wikipedia REST API
let api = RestApiBuilder::wikipedia("en").build();

// From the page "Rust (programming language)"...
let page = Page::new("Rust (programming language)");

// ...retrieve basic information and wikitext
let (page_info,wikitext) = page.get(&api, false).await.unwrap();

// Edit an existing page
let token = "my_oauth_token";
let api = RestApiBuilder::wikipedia("en")
    .with_access_token(token)
    .build();
let (page_info,_) = page.get(&api, false).await.unwrap();
page.edit(&api, &page_info.latest, "new page wikitext", "a comment")
    .await
    .expect("Failed to edit page");

// Convert some wikitext to Parsoid HTML.
let html = Transform::wikitext2html("[[Foo|bar]]", &api).await.unwrap();

Status

  • File: complete
  • Page: complete
  • Revision: complete
  • Transform: complete
  • Math: complete
  • OAuth2: implemented (as part of token management for POST etc)
  • CheckUser: not implemented
  • EventBus: not implemented
  • FlaggedRevs: not implemented
  • GrowthExperiments: not implemented
  • IPinfo: not implemented
  • SecurePoll: not implemented
  • SiteMap: not implemented
  • CampaignEvents: not implemented
  • WikimediaCampaignEvents: not implemented

About

A Rust client for the MediaWiki REST API

Resources

Readme
Activity

Stars

3 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.