Function oauth_client::get
source · [−]pub fn get<RB: RequestBuilder>(
uri: &str,
consumer: &Token<'_>,
token: Option<&Token<'_>>,
other_param: Option<&ParamList<'_>>,
client: &RB::ClientBuilder
) -> Result<RB::ReturnValue, Error>
Expand description
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 resp = oauth_client::get::<DefaultRequestBuilder>(REQUEST_TOKEN, &consumer, None, None, &()).unwrap();