Call Bitbucket REST API using 2leg oauth token
问题 I am trying to call bitbucket's api using 2-legged oauth authentication. I call https://bitbucket.org/!api/1.0/oauth/request_token with my oauth secret and key and get the following: oauth_token_secret=<token_secret>&oauth_token=<token>&oauth_callback_confirmed=true How can I use this to call an api function, such as https://bitbucket.org/api/1.0/user 回答1: After you have received accesstoken & secret, when you send the request add a (Authorization) Header as, Authorization: OAuth oauth