I am trying to get a token to access stream api - https://stream.twitter.com/1.1/statuses/filter.json.
For this I’ve created a twitter app and have I have created consumer key and consumer secret. I’m able to invoke https://api.twitter.com/oauth/request_token and get the oauth_token and oauth_token_secret.
However, I am not able to retrieve the bearer token to invoke the streaming api. When I invoke “https://api.twitter.com/oauth/access_token” with header params below, I get “access data - { ‘Error processing your OAuth request: Invalid oauth_verifier parameter’: ‘’ }”.
consumer_key: 'key’
consumer_secret: 'secret’
token: auth_data.oauth_token
token_secret: auth_data.oauth_token_secret
How do I retrieve “oauth_verifier” parameter? I’m building this for an automated system which will use the streaming api, without any manual user input.
Is there another approach to invoke streaming apis?