Thank you @andypiper for your response.
I want to make myself clear on few things…
I am using java to achieve the above behaviour.
First, i am calling oauth/request_token end point an able to get oauth_token.
Then, i am calling oauth/authorize end point where my user will authorize my app and I am getting oauth_token an oauth_verifier to my call back url…
Then, I am calling oauth/access_token end point an passing oauth_verifier and valid Authorization header to this end point and in response, I am getting oauth_token, oauth_token_secret, user_id,screen_name and x_auth_epires as response…
Here, oauth_token and oauth_token_secret are same as access_token and access_token_secret in my app…
Our website will have a twitter logo which will enable the user to post a video to twitter.
Could you please confirm, if the above flow is correct and which token I have to use when I am trying to post a video to /1.1/media/upload.json endpoint. Do I also need to pass authorization header…?
Sorry for the long question and thank you for your patience towards this…