Crate oauth_client_fix

Source
Expand description

OAuth 1.0 client library for Rust.

Dependent on libcurl.

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 = oauth_client::get(REQUEST_TOKEN, &consumer, None, None).unwrap();

Structs§

Token
Token structure for the OAuth

Enums§

Error
The Error type

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 Aliases§

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