Crates.io | oauthcli |
lib.rs | oauthcli |
version | 2.0.0-beta-2 |
source | src |
created_at | 2015-01-11 13:30:56.516717 |
updated_at | 2017-09-03 03:37:50.613108 |
description | Implementation of OAuth 1.0 (and Twitter's f*ckin' OAuth) Client |
homepage | |
repository | https://github.com/azyobuzin/rust-oauthcli |
max_upload_size | |
id | 767 |
size | 26,389 |
Yet Another OAuth 1.0 Client Library for Rust
extern crate oauthcli;
extern crate url;
let header =
oauthcli::OAuthAuthorizationHeaderBuilder::new(
"POST",
url::Url::parse("https://example").unwrap(),
"Consumer Key",
"Consumer Secret",
oauthcli::SignatureMethod::HmacSha1 // or Plaintext
)
.token("OAuth Token", "OAuth Token Secret")
.request_parameters(vec![("status", "hello")].into_iter())
.finish();
assert_eq!(header.to_string(), "OAuth ......")
oauthcli
has already reached v1.0.0 although ring
is not stable.
What shoud I do for not breaking the compatibility?