Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add-names-to-Corp-Market-Orders
<?php
// Begain MarketOrders Access Key
$MarketOrders_keyID="";
$MarketOrders_vcode="";
$MarketOrders_characterID="";
$MarketOrders_url = "http://api.eveonline.com/corp/MarketOrders.xml.aspx?flat=1&keyID=".$MarketOrders_keyID."&vcode=".$MarketOrders_vcode."&characterID=".$MarketOrders_characterID."";
$MarketOrders_file= file_get_contents($MarketOrders_url);
$MarketOrders_xml = simplexml_load_string($MarketOrders_file);
// End MarketOrders Access Key
foreach ($MarketOrders_xml->result->rowset[0] as $MarketOrders)
{
$TypeName_url = "http://api.eveonline.com/eve/TypeName.xml.aspx?ids=". $MarketOrders['typeID'] ."";
$TypeName_file= file_get_contents($TypeName_url);
$TypeName_xml = simplexml_load_string($TypeName_file);
foreach ($TypeName_xml->result->rowset[0] as $TypeName)
{
print $TypeName['typeName']."<br>";
};
};
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.