Function oauth_client_fix::authorization_header [] [src]

pub fn authorization_header(method: &str,
                            uri: &str,
                            consumer: &Token,
                            token: Option<&Token>,
                            other_param: Option<&ParamList>)
                            -> String

Create an authorization header. See https://dev.twitter.com/oauth/overview/authorizing-requests

Examples

const REQUEST_TOKEN: &'static 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);