I want to use standard search to filter tweets by mentions with postman, but i cannot even test the example provided by twitter.
example: https://api.twitter.com/1.1/search/tweets.json?q=%23superbowl&result_type=recent
I can use many other functions without getting an authentication error, but I can’t use this one.
1 Like
It might be an issue with Postman itself. I usually use Insomnia as an alternative.
This thread may have a useful hint for you.
1 Like
jrsyo
#3
@ezeporto99
Yes, unfortunately, this is a Postman specific issue only with OAuth1.0a authentication. That is, you can remediate this by simply using OAuth2 (bearer token) instead since the GET /search/tweets.json doesn’t require user context. See this for more details about application-only authentication.
But, how about other endpoints that require user context (= require OAuth1.0a) and might include some special characters like this one? and use Postman in such case? Well, the good news is we have a solution for this. See this GitHub issue I created before:
You can just Copy & Past the pre-request script into your request’s Pre-request Script setting (+ disable Authorization type to No Auth).
[EDITED]
If you want to use that custom pre-request script, you must configure Postman environment as per this guidance (define variables and add your credentials there): GitHub - twitterdev/postman-twitter-ads-api: Postman collection for the Twitter Ads API as the script reads your credentials from those environment variables.
1 Like
Thanks for your replies, but unfortunately only changing to insomnia worked a little.
I still have an issue making request from twitter examples.
I can make this request to my user, but I can’t to other accounts.
[EDITION]
When I filter by mention the response brings every tweet from every user, even my own replies to a tweet of mine, is there any way not to include the self-replies?
system
Closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.