Function oauth_client::get[][src]

pub fn get(
    uri: &str,
    consumer: &Token<'_>,
    token: Option<&Token<'_>>,
    other_param: Option<&ParamList<'_>>
) -> Result<Vec<u8>>

Send authorized GET request to the specified URL. consumer is a consumer token.

Examples

let REQUEST_TOKEN: &str = "http://oauthbin.com/v1/request-token";
let consumer = oauth_client::Token::new("key", "secret");
let bytes = oauth_client::get(REQUEST_TOKEN, &consumer, None, None).unwrap();
let resp = String::from_utf8(bytes).unwrap();