You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I pass a ['q'=>'dogs'] as queryParams to the constructor. The function formatQueryParams() turns this into q:dogs. Which is what is search for and returns tweets with content such as "Q Dogs".
I get better return results by using below.
After I’ll fix the formatQueryParams method, you’ll be able to use a multikey array:
newTwitterSearchFeed(
[
'twitter', // do not specify a key for string searchs'from' => 'ambroisemaupate',
'since' => '2015-11-01',
'until' => date('Y-m-d'),
],
'xxxx',
'xxxx',
'xxxx',
'xxxx',
$cache
),
It will generate the q param with "twitter from:ambroisemaupate since:2015-11-01 until:2015-12-01" value. It’s the right syntax according to https://dev.twitter.com/rest/public/search
If I pass a ['q'=>'dogs'] as queryParams to the constructor. The function formatQueryParams() turns this into q:dogs. Which is what is search for and returns tweets with content such as "Q Dogs".
I get better return results by using below.
$this->queryParams['count'] = $count;
$body = $this->twitterConnection->get("search/tweets", $this->queryParams );
Thou I'm not sure if this is correct either.
The text was updated successfully, but these errors were encountered: