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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With