Function oauth_client_fix::post [] [src]

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

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

Examples

let ACCESS_TOKEN: &'static str = "http://oauthbin.com/v1/access-token";
let consumer = oauth_client::Token::new("key", "secret");
let bytes = oauth_client::post(ACCESS_TOKEN, &consumer, Some(&request), None).unwrap();
let resp = String::from_utf8(bytes).unwrap();