A generic MediaWiki OAuth handshake helper.
Project description
This library provides a simple means to performing an OAuth handshake with a MediaWiki installation with the OAuth Extension.
Usage
import mwoauth
oauth = mwoauth.OAuth(
"https://en.wikipedia.org/w/index.php",
"<consumer key>",
"<consumer secret>"
)
redirect, resource_owner = oauth.initiate()
print("Go to: %s" % redirect)
auth = oauth.complete(resource_owner, raw_input("response_qs: "))
print oauth.identify(auth)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mwoauth-0.1.0.tar.gz
(2.8 kB
view hashes)