function tweetid_to_user_status($id)
{
    /* if you are out of API calls, uncomment the next line to just return the id back... */
    //return array("@user", "tweet_id $id");
    $aux = curlit("http://api.twitter.com/1/statuses/show.json?id=" . $id);
    $json = json_decode($aux);
    $text = str_replace("\n", " ", $json->text);
    return array($json->user->screen_name, $text);
}
Example #2
0
<?php

include 'lib/php/curling.php';
$remoteStyles = curlit('http://www.uvu.edu/_resources/includes/styles.inc');
$remoteHscripts = curlit('http://www.uvu.edu/_resources/includes/headerscripts.inc');
$remoteMegaMenu = curlit('http://www.uvu.edu/_resources/includes/megamenu.inc');
$remoteHeader = curlit('http://www.uvu.edu/_resources/includes/header.inc');
$remoteSearch = curlit('http://www.uvu.edu/_resources/includes/search.inc');
$remoteFatFooter = curlit('http://www.uvu.edu/_resources/includes/footer.inc');
$remoteFscripts = curlit('http://www.uvu.edu/_resources/includes/footerscripts.inc');
$deptTitle = curlit('http://www.uvu.edu/besc/lib/includes/deptitle.inc');
/*Repoint to your department or app title*/
$deptNav = curlit('http://www.uvu.edu/besc/lib/includes/nav-dept.inc');
/*Repoint to your department or app nav*/
$deptFoot = curlit('http://www.uvu.edu/besc/lib/includes/footer-dept.inc');
/*Repoint to your department or app footer*/
?>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Subject Pool</title>
		<link rel="shortcut icon" type="image/png" href="uvu.png">
		<meta name="keywords" content="" />
		<meta name="description" content="" />
      	<?php 
if ($remoteStyles) {
    echo $remoteStyles;
}
// make sure we got a result and print it into the page
?>