eaEncode($secret);
//display the hash on the screen
echo "Your Hash: " . $hash . " ";
$c = new Connector($user, $password, $hash);
$info = $c->connect();
//display the connection info on the screen
echo " Your Connection Details: ";
echo $info['EASW_KEY'] . " ";
echo $info['EASF_SESS'] . " ";
echo $info['PHISHKEY'] . " ";
echo $info['XSID'] . " ";
//we call the playersearch function from the Searchor file
$s = new Searchor($info['EASW_KEY'], $info['EASF_SESS'], $info['PHISHKEY'], $info['XSID']);
//we pass $s->playersearch a lot of variables
//1. what number to start searching at
//2. how many results do I want to get back (max 15)
//3. what level is the player
//4. what formation am I looking for
//5. what position do they play
//6. what nationality are they
//7. what league do they play in
//8. what team do they play for
//9. minimum bid (this is not your offer)
//10. maximum bid (this is not your offer)
//11. minimum Buy It Now (this is not your offer)
//12. maximum Buy It Now (this is not your offer)
$search = $s->playersearch(0,1,'gold','f442','attacker','9','13','144','','','','');
//display the search results on the screen
echo " A Single Search Result: " ;
var_dump($search);
//we call the trade function from the Tradeor file
//we pass $t-trade() a trade id to lookup
$t = new Tradeor($info['EASW_KEY'], $info['EASF_SESS'], $info['PHISHKEY'], $info['XSID']);
$trade = $t->trade(18629464);
//to bid 200 on the trade above you would use $t->bid(18629464, 200);
//display the trade details on the screen
echo "
A Single Trade Detail: " ;
var_dump($trade);
?> |