<?php
include_once('GetTwitterFeed.class.php');
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');
$retrieveUrl = "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=[TWITTER_USERNAME]";
$consumer_key = "";
$consumer_key_secret = "";
$objTwitter = new GetTwitterFeed($retrieveUrl, $consumer_key, $consumer_key_secret);
echo $objTwitter->getJsonFeed();
?>
|