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

user lookup with two or more screen_names will fail if one user doesn't exist #206

Closed systemaddict closed 5 years ago

systemaddict commented 7 years ago

Hi

If I try this:

user_lookup('screen_name=BengtHolst')

I will get a correct answer "No user matches for specified terms.".

However, if I try:

user_lookup('screen_name=BengtHolst,systemaddict')

The request will fail and return:

string(1417) "\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\u003c\/a\u003e","in_reply_to_status_id":null, ...

andypiper commented 7 years ago

Unable to reproduce using twurl

systemaddict commented 7 years ago

I think it's a codebird bug. After changing to https://github.com/abraham/twitteroauth the exact same query executes without problems.

mynetx commented 7 years ago

We’ll take a close look soon. @systemaddict Which codebird-php and which PHP version are you using?

bobbykjack commented 5 years ago

FYI, works fine for me (users_lookup, though) using 3.1.0 and php 7.1.19. I just get a single User item back in the response.

mynetx commented 5 years ago

@systemaddict As @bobbykjack points out, please double check that you are calling the correct API method including the plural S.