PDA

View Full Version : [Question] Generating ingame item links pulled from YG XML API ?


Nwardezir
04-13-2011, 11:35 AM
Hello,

I'm looking forward into using your wonderful API to generate ingame item links.

Let's take for instance item, Ell of Torment (http://aoc.yg.com/item/ell-of-torment?h=HE21MFR5).

When you use the API, calling : http://aoc.yg.com/api/lookup?s=Ell%20of%20Torment&t=xml
The returned (xml) code is :
<yg_xml>
<object>
<id>4308857</id>
<name>Ell of Torment</name>
<url>http://aoc.yg.com/item/ell-of-torment?h=HE21MFR5</url>
<icons>
<small>http://aoc.yg.com/Img/game/small/486784.jpg</small>
<medium>http://aoc.yg.com/Img/game/medium/486784.jpg</medium>
<large>http://aoc.yg.com/Img/game/large/486784.jpg</large>
</icons>
</object>
</yg_xml>

On the other side, if I link this item ingame, it will generate code like this (added some \n for better readability) :
<a style="text-decoration:none" href="itemref:
//4308857/4308857/0/80/f81eac1f:b6b70155:a7d772:d05f9bb1/f81eac1f:
b6b70155:a7d772:d05f9bb1/b290805c:29e627ca:b290805c:29e627ca">
[Ell of Torment]</a>
As you can see, we can pull Item ID from YG API call ... is there a way to get all these other identifiers to generate a working ingame link ?

I'm already using API on php Bot to get Player data, I'll be really happy to also use YG wide item database :)
(and yes, I know about Getrix "freeDB" but this doesn't fit me totally, requires some special identification, I'd looking for some alternate method)

Thanks. :)

YGAdmin
04-14-2011, 02:16 PM
Sorry we do not have the other identifiers available at this time.

Drizzurden
08-03-2011, 11:01 PM
hi ....

maybe this ist a step in the correct direction ;) .... but only when it's working ^^

http://forums.yg.com/showthread.php?t=1567