Use the JTwitterOAuth and JTwitter libs to set up a connection to Twitter then execute a search.
$oauth = new JTwitterOAuth();
$oauth->setOption('consumer_key', $consumerKey);
$oauth->setOption('consumer_secret', $consumerSecret);
$token = array('key'=>$key, 'secret'=>$secret);
$oauth->setToken($token);
$twitter = new JTwitter($oauth);
Pass a search query parameter with a space, # or @.
The Twitter REST API should return a list of search results.
Exception:
exception 'DomainException' with message 'Could not authenticate you.' in /home/haydenyoung/html/tweettrack/libraries/joomla/twitter/oauth.php:128
is thrown.
Title |
|
Title |
|
Category | ⇒ | Libraries |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-01-27 10:03:01 |
Closed_By | ⇒ | brianteeman |
This is a duplicate of #8503
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8501.