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

Multiple IDs

Discussion in 'Census: General Discussion' started by slowglass, Feb 14, 2012.

  1. slowglass

    slowglass Guest

    Appologies if this has been asked. I have recently joind these forums and a quick search did not fin this question.

    Is there a way to get multiple characters back from a single query where I know the id or names of the characters.

    For example: I would like to get the information for characters; Chico, Harpo and Groucho in a single RESTful query.

    I understand I can send 3 queries but this does not scale as the number of characters increases.

    Seshat

     
  2. feldon30

    feldon30 Guest

    <span style="text-decoration: line-through;">&c:count=3 &c:limit=3

     
  3. DanKinney

    DanKinney Guest

    Actually, it is c:limit=3 (or whatever limit you want).  The c:count command is a boolean that says to include the total account in the result.

    -dan

     
  4. DanKinney

    DanKinney Guest

    If you are referencing by ID (not doing a search), you don't need a c:limit command.  

    Consider this...

    census.daybreakgames.com/xml/get/eq2/character/2168961825756,2168961817429,515400265667?c:show=displayname

    Even without a c:limit, you will get 3 characters (showing only their displayname).

    -dan

     
  5. slowglass

    slowglass Guest

    Thanks Dan that is exactly what I needed. I can do the name look up once and cache the IDs, then use the query you have given, it works perfectly

    Seshat

     
  6. feldon30

    feldon30 Guest

    Ask Dan, I'm the expert at writing bum queries. ;) Fortunately Dethdlr does all that. I do HTML/CSS and enough PHP to get myself in trouble. ;)
     

Share This Page