Build this in about 25 minutes; it's super simple. Fill in your server link + api @ dev.battle.net
it will output an itemID to buy; easy enough; I can make it more advanced if you request lol
Code:
<?php
// Send the headers
ini_set('memory_limit', '1G');
set_time_limit(-1);
ini_set('max_execution_time', 0);
echo "Running! <br>";
function get_item($item){
$item_json = "#######"; // https://us.api.battle.net/wow/item/".$item."?locale=en_US&apikey=&&
$json_to_pull = json_decode(file_get_contents($item_json));
$that_this = $json_to_pull->sellPrice;
return $that_this;
}
$oData=json_decode(file_get_contents("######"),TRUE); // https://us.api.battle.net/wow/auction/data/malganis?locale=en_US&apikey=&&&
$json=json_decode(file_get_contents($oData["files"][0]["url"]));
$rows = array();
$rows['auctions'] = $json->auctions->auctions;
foreach($rows as $blah=>$stuff){
foreach($stuff as $things){
$item = $things->item;
$price = $things->buyout;
if(get_item($item) > $price && $price != 0){
echo 'Found one! - itemID '.$item.'- price: '.$price.' <br>';
}
}
}
?>