I have the following code, which displays tweets in JSON
format to an HTML
page. I would like to display these tweets in a more presentable manner. Could anyone provide me with any options?
session_start();
require_once("twitteroauth-master/twitteroauth/twitteroauth.php"); //Path to twitteroauth library
$twitteruser = "massa_jes";
$notweets = 1;
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);
$resArr = json_encode($tweets); //decodes the json string to an array
var_dump($resArr);