Last active
December 11, 2015 22:28
-
-
Save LinzardMac/4669877 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tweetq= pods('twitter_resources'); | |
$tweetq->find(); | |
while ( $tweetq->fetch() ) : | |
$fromname = $tweetq->field('from_user'); | |
$categorize = $tweetq->field('categorize'); | |
# Get only recent strings from twitter to avoid pulling dupes | |
$max_id = get_option('ttp_max_tweet_id', 0); | |
// Fire the HTTP request to Twitter | |
$response = wp_remote_get('http://search.twitter.com/search.json?q=from:'. urlencode($fromname) .'&result_type=recent&rpp=10&since_id='.$max_id); | |
endwhile; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment