Code Monkey home page Code Monkey logo

medal-tv-rs's Introduction

yelp-fusion-rs

Version Docs License

A Rust library for the medal.tv API.

Features

Examples

Query every clip you've ever recorded!

MEDAL_TV_API_KEY=<api_key> MEDAL_TV_USER_ID=<user-id> cargo run --example get_all_clips

#[tokio::main]
async fn main() -> Result<(), MedalError> {
    let medal_tv_api_key: String = env::var("MEDAL_TV_API_KEY").expect("no medal.tv API key");
    let medal_tv_user_id: String = env::var("MEDAL_TV_USER_ID").expect("no medal.tv user ID");

    let medal_client: MedalClient = MedalClient::new(medal_tv_api_key, None);
    let latest_payload: LatestPayload = LatestPayload::builder().user_id(medal_tv_user_id).build();
    let latest_response: LatestResponse = medal_client.latest(&latest_payload).await?;

    println!("{}", serde_json::to_string(&latest_response).unwrap());
    Ok(())
}

For more examples, check out the examples directory.

Developers

Project is under active maintenance - even if there are no recent commits! Please submit an issue / bug request if you the library needs updating for any reason!

Feature Requests

Implement the rest of the API endpoints.

Currently, I only have a use-case for medal.tv API's /v1/latest endpoint, so I haven't prioritized developing the rest of endpoints.

I fully intend to implement all of those features so that this library can do everything the medal.tv API allows.

If you have a dire need for any of those endpoints, please ping me via an issue on GitHub and I'll know to prioritize that work. If you're feeling extra adventurous and/or REALLY need those endpoints implemented, please send a pull request :)

Commands

  • make lint
    • Lints the codebase via cargo fmt.
  • make test
    • Tests the codebase via:
      • cargo fmt
      • cargo check
      • cargo clippy (with insanely strict defaults)
      • cargo test.

Credits

Made with 🤬 and 🥲 by Todd Everett Griffin.

medal-tv-rs is open source under the MIT License.

medal-tv-rs's People

Contributors

goddtriffin avatar

Watchers

 avatar

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.