Crate oauth_client [] [src]

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

Structs

Error

The Error type.

Token

Token structure for the OAuth

Enums

ErrorKind

The kind of an error.

Traits

ResultExt

Additional methods for Result, for easy interaction with this crate.

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

Convenient wrapper around std::Result.