jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
776 stars 234 forks source link

Search more than one term? #200

Closed bulkdev closed 7 years ago

bulkdev commented 7 years ago

Sorry if im a newb, but yea, basically wanna know how i can search more than one term, im using this code:

params = array('q'=>'#gta','lang'=>'en');    
$reply = (array) $cb->search_tweets($params);
joshuaatkins commented 7 years ago

Hi @ItzBulkDev,

Have you tried using the OR/AND operands? such as;

$params = array('q'=>'#steak OR #chicken','lang'=>'en');

See https://dev.twitter.com/rest/public/search for more info.