Connecting to Compendium Programatically

Post/Author/DateTimePost
#1

dreadweasel

Jul 22, 2009 17:45:40
Hello everyone,

I'm writing a combat tracker for 4th Ed and I was curious if there is any way to connect or query the compendium. As a paying subscribers of D&Di, I was interested in being able to connect to the compendium to pull out the information for a given item / monster / power so I can import it into the tracker. Is there any means of doing this?

~DW
#2

dalzig

Jul 22, 2009 17:55:30
Yes, there is as other combat trackers and such programs have done it.

Check out Healing Strike. Now view the page source. You'll get a string like...<span>Cleric Attack 1</span>Healing Strike<p><i>Divine radiance gleams from your weapon. When you smite your enemy, your deity bestows a minor blessing in the form of healing for you or one of your allies.</i></p><p>Encounter&#160;&#160; <img src="images/bullet.gif" alt="" />&#160;&#160;&#160;&#160; Divine, Healing, Radiant, Weapon<br />Standard Action&#160;&#160;&#160;&#160;&#160;&#160;Melee weapon</p><p>Target: One creature</p><p>Attack: Strength vs. AC</p><p>Hit: 2[W] + Strength modifier radiant damage, and the target is marked until the end of your next turn. In addition, you or one ally within 5 squares of you can spend a healing surge.</p>
This will have all your information in it. Now, how you supply credentials and all that... *shrug*
#3

Mock

Jul 23, 2009 20:41:12
There are two articles on the Compendium API (do a search for D&D compendium API on Google, and you'll see the links).

I couldn't find the info on authenticating, but I know I've seen it out there; I just can't remember where.
#4

opkobold

Jul 27, 2009 20:40:19
The second article:

http://www.wizards.com/default.asp?x=dnd/insidernews/20090622