brill
#1
Hi!
I’m getting a weird error when doing a search in the v1.1 API. I’m doing the example in the documentation which follows the guideline “Ensure all parameters are properly URL encoded.”:
https://api.twitter.com/1.1/search/tweets.json?q=twitterdev%20new%20premium
When I run this I get an authorization error. However, if I do the same search but without the URL encoding it works fine:
https://api.twitter.com/1.1/search/tweets.json?q=twitterdev new premium
Below is screenshots from Postman where I show the two examples i just described.
So, why do I get an error when following the documentation and vice versa?
Why is the error “401 Authorization Required” when that’s not the case here?
I’m very confused at the moment.
1 Like
I’ve seen this quite often when using Postman, and I’d recommend taking a look at this issue on GitHub which provides a pre-request script that may help.
system
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.