Multiple user_timeline request (tweets) in endpoint


#1

I am trying to get Tweets from multiple users using the users’ IDs, but it won’t work. Here is my PHP-code (a and b are two different IDs:

//fixade ur tills arrayer kommer
$url = ‘https://api.twitter.com/1.1/statuses/user_timeline.json’;
$getfield = “?user_id=a,b&count=100”;
$requestMethod = ‘GET’;

$twitter = new TwitterAPIExchange($settings);
$response = $twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest();

$response = json_decode($response);

Is there another way to do this request so it works?
Thanks in advance :slight_smile: