Looking at your code, you are using the xml object as the access token, not the actual string token.
<?php
// change this line
$myevents = simplexml_load_file("https://www.eiseverywhere.com/api/v2/ereg/getEvent.xml?accesstoken=$mynumber&eventid=124124");
// to this
$token = $mynumber->accesstoken;
$myevents = simplexml_load_file("https://www.eiseverywhere.com/api/v2/ereg/getEvent.xml?accesstoken={$token}&eventid=124124");
?>
Welcome to PHP! :)