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

[Opinions Requested] Item Discovery Data Format

Discussion in 'Census: General Discussion' started by Dethdlr, Feb 28, 2012.

  1. Dethdlr

    Dethdlr Guest

    I asked about this earlier in a different thread about GU63.  Have the new items from GU63 been exported to the REST API yet?  If not, that explains them not showing up.

     
  2. DanKinney

    DanKinney Guest

    Here is an update on this.

    The new discovery format should begin appearing on the next EQ2 game update (usually on Tuesday mornings, California time).

    As previously stated, the new format will be side-by-side in the data with the existing format.  For development purposes, here is an example of what you should see.

    XML:

    <_extended>    <discovered id="100" charid="429497063519" timestamp="1268602961">        <world_list>            <world id="100" charid="429497063519" timestamp="1268602961"/>        </world_list>    </discovered></_extended>

    JSON:

    "_extended": {    "discovered": {        "id":100,        "charid": 429497063519,        "timestamp": 1268602961,        "world_list": [            {                "id":100,                "charid": 429497063519,                "timestamp": 1268602961            }        ]    }}

    -dan

     
  3. DanKinney

    DanKinney Guest

    More clarification...the new format will be intertwined with the original format.  Here is a better example...

    "_extended": {    "discovered": {        "charid": 1559073155791,        "id": 363,        "timestamp": 1332448305,        "from_120": {            "charid": 515398188875,            "timestamp": 1286905400        },        "from_121": {            "charid": 519692772503,            "timestamp": 1286908198        },        "from_2": {            "charid": 8589992644,            "timestamp": 1285903877        },        "world_list": [            {                "charid": 1559073155791,                "id": 363,                "timestamp": 1332448305            }        ]    }}

    Once you have moved to use the new format, simply ignore the "from_*" parts until this gets cleaned up.

    -dan

     
  4. Lantis

    Lantis Guest

    I've been working on migrating my code to the new format, and can't find a way to query for a list of items discovered by a specific charid using the new format.  The above query would only return a list of game-wide discoveries, not server-wide <img src="/smilies/9d71f0541cff0a302a0309c5079e8dee.gif" border="0" alt="SMILEY" />

    Any suggestion?

     
  5. Dethdlr

    Dethdlr Guest

    Lantis, 

    Will this do what you're looking for?

    [url="census.daybreakgames.com/xml/get/eq2/item/?_extended.discovered.world_list.charid=446678606263">census.daybreakgames.com/xml/get/eq2/item/?_ext...id=446678606263[/url]

     
  6. Lantis

    Lantis Guest

    That seems to work, thanks!  (I didn't think to try world_list.charid, only tried world_list.world.charid)

    I now got PHP code that can pull the list of discoveries, and locally sort them so I can easily get the newest one (for example).

     

Share This Page