[][src]Crate oauth_client_async

OAuth 1.0 client library for Rust.

Repository

Examples

Send request for request token.

const REQUEST_TOKEN: &'static str = "http://oauthbin.com/v1/request-token";
let consumer = oauth_client::Token::new("key", "secret");
let bytes_future = oauth_client::get(REQUEST_TOKEN, &consumer, None, None);
let bytes = core.run(bytes_future).unwrap();

Structs

HttpStatusError

An error happening due to a HTTP status error.

Token

Token structure for the OAuth

Functions

authorization_header

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

get

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

post

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

Type Definitions

ParamList

Alias for HashMap<Cow<'a, str>, Cow<'a, str>>

Result

Result type.