Files
Testing/signedout/twitterbot/TweetPHP.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

56 lines
1.9 KiB
PHP

<?php
/**
* 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' => 'D3mGJZ97HUHQubcIE9Z6yT1QT',
'consumer_secret' => '9vSkGEGbirTt0btaHcuSJlXZA5YEnTqxu9ABL9Ef2k7iv0I2pj',
'access_token' => '16094536-4wve2o2ZYPuYx3PghOc01J51TnB0B6r9Sq1cSCOZY',
'access_token_secret' => 'Z3D1YZ21CmNey3dlcDeyhlXcTpH6ytRnxuXrJiIW11RYZ',
'twitter_screen_name' => '#teamleps',
'enable_cache'=>false
));
//echo $TweetPHP->tweet("twitch.tv/lepslair LIVE! #SupportSmallStreamers #teamleps @twitchtvhost @TwitchSharer #teamSSG #SZFam @DNR_CREW #teamemmmmsie #TUGfam");
//echo $TweetPHP->tweet("beam.pro/lepslair LIVE! #SupportSmallStreamers #teamleps @BeamRetweets @BeamRetweet @DNR_CREW #teamemmmmsie #beam #TUGfam");