oauthcli 0.0.4

Implementation of OAuth 1.0 Client without curl dependency
docs.rs failed to build oauthcli-0.0.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: oauthcli-2.0.0-beta-2

oauthcli

Yet Another OAuth 1.0 Client Library for Rust

Features

  • RFC 5849 implementation
  • Very few dependencies

How to Use

extern crate oauthcli;
extern crate url;

let header =
  oauthcli::authorization_header(
    "POST",
    url::Url::parse("https://example").unwrap(),
    None, // Realm
    "Consumer Key",
    "Consumer Secret",
    Some("OAuth Token"),
    Some("OAuth Token Secret"),
    oauthcli::SignatureMethod::HmacSha1, // or Plaintext
    oauthcli::timestamp(),
    oauthcli::nonce(),
    None, // oauth_callback
    None, // oauth_verifier
    vec![("status".to_string(), "hello".to_string())].iter()
  );

// header = "OAuth ......"