

code-block:: python from mwoauth import ConsumerToken, initiate, complete, identify from six.moves import input # For compatibility between python 2 and 3 # Consruct a "consumer" from the key/secret provided by MediaWiki import config consumer_token = ConsumerToken( nsumer_key, nsumer_secret) mw_uri = "" # Step 1: Initialize - ask MediaWiki for a temporary key/secret for # user redirect, request_token = initiate(mw_uri, consumer_token) # Step 2: Authorize - send user to MediaWiki to confirm authorization print("Point your browser to: %s" % redirect) # response_qs = input("Response query string: ") # Step 3: Complete - obtain authorized key/secret for "resource owner" access_token = complete( mw_uri, consumer_token, request_token, response_qs) print(str(access_token)) # Step 4: Identify - (optional) get identifying information about the # user identity = identify(mw_uri, consumer_token, access_token) print("Identified as '. To combine the two mostly valid answers, you should use a MediaWiki template that itself utilizes a blockquote.

This will download the SVN trunk, and any dependencies: -> Fetching codeblocks-devel -> Verifying checksum (s) for.
#Mediawiki code block mac os#
If you want the X11/GTK version on Mac OS X, instead use: sudo port install codeblocks-devel +x11. Else (or if you don't mind this advice), you can read some articles about installing Code::Blocks: Installing Code::Blocks.
""" A set of stateless functions that can be used to complete various steps of an OAuth handshake or to identify a MediaWiki user. I agreeis the better choice, however this should be encapsulated in a template. After that is installed, you can install Code::Blocks with: sudo port install codeblocks-devel +aqua. HTML tagsEdit The blockquote command formats block quotations, typically by surrounding them with whitespace. If you are using windows and preparing yourself for your first step in development, I recommend you to install the version bundled with mingw.