Author Topic: Request: Player info in XML feed  (Read 4670 times)

Ex-calibur

  • Lieutenant
  • ***
  • Posts: 54
    • Taffer's Realm
Request: Player info in XML feed
« on: November 14, 2008, 04:05:59 PM »
Could you add some player profile info (even just a profile="944" attribute with the profile ID in it to the <characters> element?) to the XML feed?  'cause I'm fixing the CIT Avatars widget, and it'd be best to have the user enter one bit of info (XML feed URL) instead of two (profile ID and XML feed).

This would let me add the player's status icon as an option along with the character badge count icons.
- @Ex-calibur

SuckerPunch

  • Elite Boss
  • *****
  • Posts: 1,608
    • Titan Network
Re: Request: Player info in XML feed
« Reply #1 on: November 14, 2008, 04:11:45 PM »
Sure thing :)

Ex-calibur

  • Lieutenant
  • ***
  • Posts: 54
    • Taffer's Realm
Re: Request: Player info in XML feed
« Reply #2 on: November 15, 2008, 01:34:41 PM »
Sure thing :)

I'm already done updating the widget (wow, using the XML feed simplified things a lot compared to the old SOAP technique), just need that player ID... ;D

If we know who's online (courtesy of HeroStats or TNT) that'd be useful info in the feed, too... maybe a top-level element like this with all of your Friends in it:
Code: [Select]
<friends>
    <friend id="944" player="Ex-calibur">
        <online>true</online><!-- or false... if true, we have: -->
        <char_id>92448</char_id>
        <name>Operative Rache</name>
        <server_name>Infinity</server_name>
    </friend>
    <friend id="1" name="Maverick X">
        <online>false</online>
    </friend>
</friends>
If we're not implementing a Friends feature for CIT, you can ignore this for now. ;-)
- @Ex-calibur

SuckerPunch

  • Elite Boss
  • *****
  • Posts: 1,608
    • Titan Network
Re: Request: Player info in XML feed
« Reply #3 on: November 15, 2008, 02:01:48 PM »
XML feed now provides "user_id" attribute to the <characters> element.

Friends is a feature that hasn't quite been worked back into CIT again.  When it does I'll add the list into the XML feed.

Ex-calibur

  • Lieutenant
  • ***
  • Posts: 54
    • Taffer's Realm
Re: Request: Player info in XML feed
« Reply #4 on: November 15, 2008, 02:36:51 PM »
XML feed now provides "user_id" attribute to the <characters> element.

Friends is a feature that hasn't quite been worked back into CIT again.  When it does I'll add the list into the XML feed.

Awesome, thanks!  Updated CIT Avatars widget in 3... 2...
- @Ex-calibur

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: Request: Player info in XML feed
« Reply #5 on: November 15, 2008, 07:20:24 PM »
to those who care.... a little while back in the day, I created another parameter on the XML feed.

add a '/json' to the end of the link and it will be "ready to roll" javascript readable JSON.
~Steinerd

Ex-calibur

  • Lieutenant
  • ***
  • Posts: 54
    • Taffer's Realm
Re: Request: Player info in XML feed
« Reply #6 on: November 15, 2008, 10:14:22 PM »
to those who care.... a little while back in the day, I created another parameter on the XML feed.

add a '/json' to the end of the link and it will be "ready to roll" javascript readable JSON.

Coolness, that might be helpful.  Yahoo! Widget Engine has an XPath implementation built-in, but that'd be helpful for someone doing Google Desktop gadgets or Vista sidebar (although I assume you can use .NET assemblies there), or even something in a web browser...
- @Ex-calibur

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: Request: Player info in XML feed
« Reply #7 on: November 16, 2008, 12:46:32 AM »
Vista Sidebar is a slight pain in the arse.

It does support java, but not any frameworks... if it isn't XHTML strict 1+ that it hates it.
~Steinerd

Ex-calibur

  • Lieutenant
  • ***
  • Posts: 54
    • Taffer's Realm
Re: Request: Player info in XML feed
« Reply #8 on: November 16, 2008, 01:57:31 AM »
Vista Sidebar is a slight pain in the arse.

It does support java, but not any frameworks... if it isn't XHTML strict 1+ that it hates it.

I started looking into it on Friday... from the docs, it seemed really hacky and half-assed, like they threw it together in a big rush. :-\

Google Gadgets seemed the same way.
- @Ex-calibur