Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter Search by Hastag missing parameters?

I am using the below call to Twitter API

https://api.twitter.com/1.1/search/tweets.json?q=#iosgames

I get the response:

{"errors":[{"code":25,"message":"Query parameters are missing."}]}

According the this the only parameter that is required is q for the query string.

The issue isn't with my OAuth as it fine with the status/user calls.

What am I missing?

like image 209
Yonkee Avatar asked Oct 19 '22 04:10

Yonkee


1 Answers

The pound sign (or hash sign, if you prefer) is one of those which must be encoded in order to be sent in a URL. # is represented by %23, so your request should be for:

https://api.twitter.com/1.1/search/tweets.json?q=%23iosgames
like image 129
kittykittybangbang Avatar answered Oct 21 '22 22:10

kittykittybangbang