Git Product home page Git Product logo

oauth1-rs's Introduction

OAuth1

Basic OAuth1 library for Rust.

Usage

extern crate oauth1;
extern crate reqwest;

use oauth1::Token;
use reqwest::Client;
use reqwest::header::AUTHORIZATION;

pub fn main() {
    let client = Client::new();
    let url = "https://api.twitter.com/1.1/account/verify_credentials.json";
    let res = client.get(url)
        .header(AUTHORIZATION, oauth1::authorize(
            "GET",
            url,
            &Token::new("consumer_key", "consumer_secret"),
            Some(&Token::new("auth_token", "auth_token_secret")),
            None,
        ))
        .send().unwrap();
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

oauth1-rs's People

Contributors

dgel avatar illicitonion avatar kaichaosun avatar mehcode avatar sirupsen avatar tesaguri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

oauth1-rs's Issues

Outdated dependencies

First of all, thank you for the crate. It helped me a lot connecting to Instapaper using OAuth 1.0a with XAuth.

Would you be so kind as to release a new version? Unfortunately, the dependencies of 0.3.0 do not resolve anymore.

   Updating crates.io index
error: failed to select a version for the requirement `ring = "^0.12"`
  candidate versions found which didn't match: 0.14.0, 0.13.5, 0.8.1
  location searched: crates.io index
required by package `oauth1 v0.3.0`

I saw you making some compatibility changes that work with my code. Let me know if I can help out in any way.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.