Files
Testing/signedout/twitterbot/live.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

50 lines
1.7 KiB
PHP

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
/**
* TweetPHP
*
* @author Jonathan Nicol @f6design
* @version 1.3.1
* @license The MIT License http://opensource.org/licenses/mit-license.php
* @link http://f6design.com/journal/2013/06/20/tweetphp-display-tweets-on-your-website-using-php/
*
* Notes:
* To interact with Twitter's API you will need to create an API KEY:
* https://dev.twitter.com/apps
* After creating your API Key you will need to pass the following values to the class
* constructor: "Consumer key", "Consumer secret", "Access token", "Access token secret"
* --
* Options can be overridden by passing an array of key/value pairs to the class
* constructor. At a minimum you must set the consumer_key, consumer_secret, access_token,
* access_token_secret and twitter_screen_name options.
* --
* You may also need to change the cache_dir option to point at a directory on your
* web server. Caching is employed because Twitter rate limits how many times their feeds
* can be accessed per hour.
*
* Credits:
* Feed parsing: https://github.com/themattharris/tmhOAuth
* Hashtag/username parsing: https://github.com/mikenz/twitter-text-php
*/
require("tweetphpclass.php");
$TweetPHP = new TweetPHP(array(
'consumer_key' => 'F8bo0XDPh7OZLG1Tr3G0dBStd',
'consumer_secret' => 'SMpPtfS0r1WEVTSRvJnJ1e04B5eweTkGGzedP6l5tlAw5ItZek',
'access_token' => '223045505-SZG7GVfwgeCCRwaFALFStIT7Ugz57w0vZS0D96fr',
'access_token_secret' => 'IgxIXKvityG19FJenfcuoGRLq9TK48ewtSUng3hM6RIOB',
'twitter_screen_name' => 'bateworld',
'enable_cache'=>false
));
echo $TweetPHP->get_tweet_list();
?>