pub fn authorization_header(
method: &str,
uri: &str,
consumer: &Token<'_>,
token: Option<&Token<'_>>,
other_param: Option<&ParamList<'_>>,
) -> (String, String)
Expand description
Create an authorization header. See https://dev.twitter.com/oauth/overview/authorizing-requests
ยงExamples
const REQUEST_TOKEN: &str = "http://oauthbin.com/v1/request-token";
let consumer = oauth_client::Token::new("key", "secret");
let header = oauth_client::authorization_header(
"GET", REQUEST_TOKEN, &consumer, None, None
);