Hey, wondering if anyone is familiar with embedding Twitter sans widget? This is what I've got, however it's not working.

PHP Code:
<ul id="twitter_update_list">
    
    <?php

    
// Get Twitter 
    
function tweets() {
        require_once(
'XXXX/twitteroauth/twitteroauth/twitteroauth.php'); //Path to twitteroauth library

        
$twitteruser "XXXX";
        
$notweets 5;
        
$consumerkey "XXXX";
        
$consumersecret "XXXX";
        
$accesstoken "XXXX";
        
$accesstokensecret "XXXX";

        function 
getConnectionWithAccessToken($cons_key$cons_secret$oauth_token$oauth_token_secret) {
          
$connection = new TwitterOAuth($cons_key$cons_secret$oauth_token$oauth_token_secret);
          return 
$connection;
        }

        
$connection getConnectionWithAccessToken($consumerkey$consumersecret$accesstoken$accesstokensecret);

        
$tweets $connection->get("https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=".$twitteruser."&count=".$notweets);

        if (
$tweets[0]->text != '') {
            
$date $tweets[0]->created_at;
            
$time strtotime($date);
            
$timeLapsed sprintf__('%s ago'), human_time_diff$time ) );
            
$tweetText buildLinks($tweets[0]->text);

            
$html '<li>'.$tweetText.'</li>';
            
        }    
        return 
$html;
    }

    
// Convert String to Link
    
function buildLinks($text){
        return 
preg_replace('!(((f|ht)tp(s)?://)[-a-zA-Zа-яА-Я()0-9@:%_+.~#?&;//=]+)!i''<a href="$1" target="_blank">$1</a>'$text);
    }

    echo 
tweets();
    
    
?>

</ul>