1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

Best Practices

Discussion in 'Census: General Discussion' started by Foruden, Feb 1, 2012.

  1. Foruden

    Foruden Guest

    Greetings,

    Got some quick questions about the best practices, and possible future abilities. 

    Best Practices:Which of these two would be better?1) Calling a character with c:resolve of all items, spells, achievements, etc.

    OR

    2) Using a few separate calls with the hide command used on the separate calls and resolving in those separate calls the information?

    Future:Will it be possible in the future to execute a query string like this: census.daybreakgames.com/json/get/eq2/item/itemId_1,itemId_2,itemId_3 ?

    Thanks!

     
  2. Lantis

    Lantis Guest

    I suspect doing one single call is most efficient, as otherwise the character would have to be located again with each query.

    Also, note that c:hide is less efficient than c:show, so try to use c:show as much as possible, even if it means a fairly long and complicated query.

     
  3. Quicktiger

    Quicktiger Guest

    Is this documented somewhere?

     
  4. Foruden

    Foruden Guest

    How would I go about specifying c:show fields in a c:resolve of equipmentslots? I've tried a few different options, but can't seem to get it to limit it at all.

     
  5. Lantis

    Lantis Guest

    I asked Dan that question a few weeks ago on these forums (wether it was best to have many c:show or a few c:hide), and he confirmed that c:show was the most efficient way to go.

     
  6. Lantis

    Lantis Guest

    The following query works for me:

    census.daybreakgames.com/xml/get/eq2/character/468151577294?c:show=equipmentslot_list&c:resolve=equipmentslots

    You can add other fields, such as displayname:

    census.daybreakgames.com/xml/get/eq2/character/468151577294?c:show=equipmentslot_list,displayname&c:resolve=equipmentslots

     
  7. Foruden

    Foruden Guest

    Sorry, I guess what I meant to ask is how do I specify what I want to show within the resolve results? Like, how do I specify what fields I want to see in the resolved equipmentslot data?

     
  8. DanKinney

    DanKinney Guest

    You can add those fields in parentheses on the c:resolve value.

    For instance...you could use the following query to resolve the spell_list on a character

    census.daybreakgames.com/xml/get/eq2/character/515400265667?c:show=displayname,spell_list&c:resolve=spells

    Changing the c:resolve will allow you to limit the resolved information - say to only four fields of information:

    c:resolve=spells(name,tier_name,type,spellbook)

    -dan

     

Share This Page