-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetTweets.php
More file actions
30 lines (26 loc) · 840 Bytes
/
Copy pathgetTweets.php
File metadata and controls
30 lines (26 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/*
Demo file for tweetCache.php
@author Mansimran Singh
@website mansimransingh.com
@email me@mansimransingh.com
@version 1.0
Dependencies: tmhOAuth by themattharris
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
<http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US>
*/
require 'TweetCache.php';
$config = array(
//'fileName' => 'tweetCache.txt',
'twitterName' => 'msingh_5',
'numberOfTweets' => 5,
//'expire' => 1,
'consumer_key' => 'YOUR_CONSUMER_KEY',
'consumer_secret' => 'YOUR_CONSUMER_SECRET',
'user_token' => 'YOUR_USER_TOKEN',
'user_secret' => 'YOUR_USER_SECRET',
);
$tweetCache = new TweetCache($config);
$tweets = $tweetCache->getTweets();
echo $tweets;
?>