Here is the code used at The Undermine Journal to connect to the Battle.net API. It is presented merely in compliance with Blizzard's Third-Party API Usage Policy and this code is not suitable, recommended, or licensed for use in any other project.

http://theunderminejournal.com/source.txt