I am receiving a 500 Internal Error Message on a page trying to make a simple search query. This is the code.
<?php include "twitteroauth.php"; ?>
<?php
$consumerKey = 'Wxxxxxxxxxx7';
$consumerSecret = '5axxxxxxxxxxxOOgJAcFPVDA';
$accessToken= ' 32562xxxxxxxxxxfpqw3';
$accessSecret= 'Wiixxxxxxxxxxuoj76Sv';
$tweetDealsConnection = new TwitterOAuth($consumerKey, $consumerSecret, $accessToken, $accessSecret);
$deals = $tweetDealsConnection->get('https://api.twitter.com/1.1/search/tweets.json?q=%23TweetDeals&since_id=24012619984051000&max_id=250126199840518145&result_type=mixed&count=4')
?>
<html>
<head>
<meta charset="utf-8" />
<title>TweetDeals Search Station</title>
</head>
<body>
<form action="" method="post">
<label>Search : <input type="text" name="keyword"/> </label>
</form>
<?php print_r($deals);?>
</body>
</html>