MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Reformat_XML",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "1456": {
                "pageid": 1456,
                "ns": 0,
                "title": "ReCAPTCHA",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "[http://recaptcha.net/ reCAPTCHA] is a great web service, which allows you to add [http://en.wikipedia.org/wiki/CAPTCHA CAPTCHA]s to your site.  What makes reCAPTCHA interesting is:\n* It uses CAPTCHA's to help digitize books\n* It's a web service, meaning your host doesn't have to generate the image.\n* It also has a CAPTCHA service for obfuscating email addresses.\n* It's accessible.  Most CAPTCHA's don't have an audio version for the visually impaired\n* It allows you to get a different image without reloading the page.\n\nI think this is a great project, and I've been keen to get it working on my site.  I tried to get it to work with my [http://www.theeggeadventure.com/gallery/main.php photo gallery] about a month ago, but I failed.  I was trying to hard to make it a configurable plugin which others could use.  Last night, though, I was successful in adding it to my [http://www.theeggeadventure.com/GuestBook/ guest book].\n\nPreviously, I had found and integrated a PHP CAPTCHA into my guest book, to help prevent the spam bots.  Unfortunately, at some point, it [PHP_Tips#Shared_Hosting stopped working].  The fonts that I was using disappeared from the directory on the shared host.  I should have copied them locally, but now it's too late.\n\nreCAPTCHA has a great little [http://recaptcha.net/plugins/php/ PHP library] which you can download and reference from your PHP application.  \n\nDownloading it was as easy as ssh'ing into my web host and running these commands:\n<geshi lang=\"bash>\n$ curl http://recaptcha.googlecode.com/files/recaptcha-php-1.9.zip > recaptcha.zip\n$ unzip recaptcha.zip\n$ cp recaptcha-php-1.9/recaptchalib.php .\n</geshi>\n\nI was able to modify and remove my old CAPTCHA system and replace it with reCAPTCHA in about 90 minutes.  Most of this time was spent searching where in the code I needed to make the changes.  Adding the reCAPTCHA code was drop dead simple.  I have it mostly working now.  The only problem is it doesn't save values when you press 'back' in your browser.  I don't want to spend the time to fix up the guest book to do this.  \n\nNext, I added the email obfuscater.  This was much simpler than the CAPTCHA bit, and took me about a half hour from start to finish.  I hope more web applications add support for reCAPTCHA, as it's much better than most system which you find, and it's doing some good!\n\n[[Image:EmailCAPTCHA.png]]\n\n[[Category:PHP]]"
                    }
                ]
            },
            "1565": {
                "pageid": 1565,
                "ns": 0,
                "title": "Reformat Java Sql",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "Occasionally, I come across a large multi-line SQL block inside Java code.  The following sed one liner takes the code off from my clipboard, tidies it up, and puts it back in the clipboard.\n\n<geshi lang=\"bash\">\nsed -e 's/^[+\"[:space:]]*//g; s/[[:space:]+\";]*$//g; s:\" //: --:'' < /dev/clipboard > /tmp/$$; cp /tmp/$$ /dev/clipboard; /bin/rm /tmp/$$\n</geshi>\n\n[[Category:Java]] [[Category:Sql]] [[Category:Unix]]"
                    }
                ]
            }
        }
    }
}