Crate oauth_client[−][src]
OAuth 1.0 client library for Rust.
Examples
Send request for request token.
const REQUEST_TOKEN: &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();
Re-exports
pub use reqwest; |
Structs
Token | Token structure for the OAuth |
Enums
Error | 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.
|
post | Send authorized POST request to the specified URL.
|
Type Definitions
ParamList | Alias for |
Result | Result type. |