sseemayer / NEOW

Node.js Eve Online API Wrapper (with Promises)
MIT License
19 stars 6 forks source link

results incomplete #7

Open sapyx opened 9 years ago

sapyx commented 9 years ago
neow = require('neow');

client = new neow.EveClient();

client
    .fetch('Eve:FacWarStats')
    .then(function (result) {
        console.dir(result);
    })
    .done();

returns

{ totals:
   { killsYesterday: { content: '1125' },
     killsLastWeek: { content: '9105' },
     killsTotal: { content: '1762853' },
     victoryPointsYesterday: { content: '94060' },
     victoryPointsLastWeek: { content: '745080' },
     victoryPointsTotal: { content: '176833085' } },
  factions:
   { '500001':
      { factionID: '500001',
        factionName: 'Caldari State',
        pilots: '5968',
        systemsControlled: '38',
        killsYesterday: '318',
        killsLastWeek: '2500',
        killsTotal: '421120',
        victoryPointsYesterday: '27460',
        victoryPointsLastWeek: '191360',
        victoryPointsTotal: '33329740' },
     '500002':
      { factionID: '500002',
        factionName: 'Minmatar Republic',
        pilots: '3810',
        systemsControlled: '9',
        killsYesterday: '121',
        killsLastWeek: '1028',
        killsTotal: '408559',
        victoryPointsYesterday: '10560',
        victoryPointsLastWeek: '71680',
        victoryPointsTotal: '22745475' },
     '500003':
      { factionID: '500003',
        factionName: 'Amarr Empire',
        pilots: '5251',
        systemsControlled: '61',
        killsYesterday: '179',
        killsLastWeek: '1544',
        killsTotal: '423490',
        victoryPointsYesterday: '8760',
        victoryPointsLastWeek: '70220',
        victoryPointsTotal: '22834076' },
     '500004':
      { factionID: '500004',
        factionName: 'Gallente Federation',
        pilots: '6194',
        systemsControlled: '63',
        killsYesterday: '507',
        killsLastWeek: '4033',
        killsTotal: '509684',
        victoryPointsYesterday: '30120',
        victoryPointsLastWeek: '227160',
        victoryPointsTotal: '31153703' } },
  factionWars:
   { row:
      { factionID: '500004',
        factionName: 'Gallente Federation',
        againstID: '500003',
        againstName: 'Amarr Empire' } },
  currentTime: '2015-01-22 21:45:33',
  cachedUntil: '2015-01-22 22:14:49' }

the full XML is

<eveapi version="2">
    <currentTime>2015-01-22 18:45:03</currentTime>
    <result>
        <totals>
            <killsYesterday>1125</killsYesterday>
            <killsLastWeek>9105</killsLastWeek>
            <killsTotal>1762853</killsTotal>
            <victoryPointsYesterday>94060</victoryPointsYesterday>
            <victoryPointsLastWeek>745080</victoryPointsLastWeek>
            <victoryPointsTotal>176833085</victoryPointsTotal>
        </totals>
        <rowset name="factions" key="factionID"columns="factionID,factionName,pilots,systemsControlled,killsYesterday,killsLastWeek,killsTotal,victoryPointsYesterday,victoryPointsLastWeek,victoryPointsTotal">
            <row factionID="500001" factionName="Caldari State" pilots="5968" systemsControlled="38" killsYesterday="318" killsLastWeek="2500" killsTotal="421120" victoryPointsYesterday="27460" victoryPointsLastWeek="191360" victoryPointsTotal="33329740"/>
            <row factionID="500002" factionName="Minmatar Republic" pilots="3810" systemsControlled="9" killsYesterday="121" killsLastWeek="1028" killsTotal="408559" victoryPointsYesterday="10560" victoryPointsLastWeek="71680" victoryPointsTotal="22745475"/>
            <row factionID="500003" factionName="Amarr Empire" pilots="5251" systemsControlled="61" killsYesterday="179" killsLastWeek="1544" killsTotal="423490" victoryPointsYesterday="8760" victoryPointsLastWeek="70220" victoryPointsTotal="22834076"/>
            <row factionID="500004" factionName="Gallente Federation" pilots="6194" systemsControlled="63" killsYesterday="507" killsLastWeek="4033" killsTotal="509684" victoryPointsYesterday="30120" victoryPointsLastWeek="227160" victoryPointsTotal="31153703"/>
        </rowset>
        <rowset name="factionWars" columns="factionID,factionName,againstID,againstName">
            <row factionID="500001" factionName="Caldari State" againstID="500002" againstName="Minmatar Republic"/>
            <row factionID="500001" factionName="Caldari State" againstID="500004" againstName="Gallente Federation"/>
            <row factionID="500002" factionName="Minmatar Republic" againstID="500001" againstName="Caldari State"/>
            <row factionID="500002" factionName="Minmatar Republic" againstID="500003" againstName="Amarr Empire"/>
            <row factionID="500003" factionName="Amarr Empire" againstID="500002" againstName="Minmatar Republic"/>
            <row factionID="500003" factionName="Amarr Empire" againstID="500004" againstName="Gallente Federation"/>
            <row factionID="500004" factionName="Gallente Federation" againstID="500001" againstName="Caldari State"/>
            <row factionID="500004" factionName="Gallente Federation" againstID="500003" againstName="Amarr Empire"/>
        </rowset>
    </result>
    <cachedUntil>2015-01-22 19:17:07</cachedUntil>
</eveapi>

The section factionWars is truncated.