Reputation: 41
I need a PHP script that uses the Twitter API to obtain the following information: the number of unique tweets (or status updates) from a specific user (using their twitter username) containing a specific hashtag during a specific period of time.
I need that value to be the only returned data from calling that function/script; as well as the customizable lines of code containing all relevant values that I need to fill (app id, secret, username to obtain info from, etc).
Upvotes: 0
Views: 548
Reputation: 180137
This is very simple to do with Twitter's Search API.
This is a JSON feed (just fetch with cURL
or file_get_contents()
and parse with json_decode()
) of my Twitter posts that include the #fb
hashtag: http://search.twitter.com/search.json?q=+%23fb+from%3Aceejayoz
Upvotes: 1
Reputation: 450
Zend Framework has a nice Twitter API lib, which can be used standalone:
http://framework.zend.com/manual/en/zend.service.twitter.html
Upvotes: 1