open All Channels
seplocked EVE Technology Lab
blankseplocked Problems with the Container Log
 
This thread is older than 90 days and has been locked due to inactivity.


 
Author Topic

Spike Keikira
Posted - 2011.07.06 17:56:00 - [1]
 

I have tried to make a script for my Corp that looks to Changes in the Corp Hangar.
Who remove a Part, who put in a part.
But the /corp/ContainerLog.xml.aspx give me only back wenn a member put a part into the Corp hangar
(row logTime="2011-07-06 17:34:13" itemID="......." itemTypeID="...." actorID="....." actorName="...." flag="119" locationID="...." action="Lock" passwordType="" typeID="3953" quantity="1" oldConfiguration="" newConfiguration="")
and an COE make it "free" for every member action="Unlock"

Why is that?
Can CCP maka a little change and add action="remove"?

regards

Dragonaire
Caldari
Corax.
PURgE Alliance
Posted - 2011.07.07 03:34:00 - [2]
 

You are really looking at the wrong API for what you need. Try looking at AssetList as it includes the containers and what's in them. it won't let you track who moved it just where it ends up if they don't just take it and put it in their own hanger that is Wink

Spike Keikira
Posted - 2011.07.10 05:52:00 - [3]
 

No ;) I have now already a script to read out the container data.. and i can work with Lock/Unlock to save the data in a database.., so my plan

<?php
// data from CEO
$userID = "";
$charakterID = "";
$apiKey = "";
// data end
function xml_attribute($object, $attribute)
{
if(isset($object[$attribute]))
return (string) $object[$attribute];
}
function datetime($date)
{
$a = explode(" ",$date);
$d = explode("-",$a[0]);
$t = explode(":",$a[1]);
return $date = mktime($t[0],$t[1],$t[2],$d[1],$d[2],$d[0]);
}
$file="http://api.eve-online.com/corp/ContainerLog.xml.aspx?userID=".$userID."&characterID=".$charakterID."&apiKey=".$apiKey;
$inhalt=file_get_contents($file);
if (!empty($inhalt)) {
$xml = new SimpleXMLElement($inhalt);
$gegenstaende = $xml->result->rowset;
}
else
{
echo "error";
die;
}
$zeilen = count ($gegenstaende->row);
for ($i = 0; $i < $zeilen; $i++){
$zeile = $gegenstaende->row->$i;
$variablen[$i]['time'] = xml_attribute($zeile, 'logTime');
$variablen[$i]['name'] = xml_attribute($zeile, 'actorName');
$variablen[$i]['aktion'] = xml_attribute($zeile, 'action');
$variablen[$i]['type'] = xml_attribute($zeile, 'typeID');
$variablen[$i]['menge'] = xml_attribute($zeile, 'quantity');
$variablen[$i]['containerID'] = xml_attribute($zeile, 'itemID');
$variablen[$i]['time'] = datetime($variablen[$i]['time']);
}
echo '<pre>';
print_r($variablen);
echo '</pre>';

now i can work with Lock/Unlock, but the rest of the script is difficult and i dont know how i should do it


 

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only