Crate w_wiki[][src]

Expand description


Conveniently shorten URLs using the service. Only some Wikimedia projects are supported, see the documentation for more details.

w-wiki’s primary shorten function is asynchronous.

let short_url = w_wiki::shorten("")

If you plan on making multiple requests, a Client is available that holds connections.

let client = w_wiki::Client::new();
let short_url = client.shorten("")

This library can be used by any MediaWiki wiki that has the UrlShortener extension installed.

let client = w_wiki::Client::new_for_api("");


Client if you need to customize the MediaWiki api.php endpoint

API error info



Shorten a URL using