Search API doesn't work with @


#1

Hi,

I’m using the new API and noticed something slightly funny. If I do a search using, for example ‘apple’ then I get the list of tweets returned. However, if I search for ‘@apple’ I get {“errors”:[{“message”:“Could not authenticate you”,“code”:32}]} and http return code 401 Unauthorized.

How could I be authorized to search for apple but not @apple ?

thanks


#2

OK so this seems to be do with encoding - see eg https://dev.twitter.com/discussions/16289 where @episod says “It could be that you have some mis-encoded values in the parameters you’re sending – check what your track terms are if you’re sending them and verify everything is a) UTF-8 and b) percent-encoded properly for HTTP 1.1 and c) your OAuth library is re-encoding that valid HTTP 1.1 percent-encoded data.”.

See also
https://dev.twitter.com/docs/auth/percent-encoding-parameters
https://dev.twitter.com/discussions/6663
https://dev.twitter.com/discussions/822


#3

@bethhall_roots