Skip to content

iddm/toornament-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toornament-rs

CI Crates Docs MIT licensed

http://toornament.com api bindings.

Status

Updating to the API version 2 is in progress.

How to use

There is a book and the documentation which may help you using this library.

Implementation

  • Immutable interface, no need to synchronize, thread-safe.
  • No unsafe blocks.
  • No unwraps (except the tests).
  • reqwest crate is used for performing requests.

Usage

Start by creating Toornament instance and perform needed operations after.

extern crate toornament;
use toornament::*;

fn main() {
    let t = Toornament::with_application("API_TOKEN", "CLIENT_ID", "CLIENT_SECRET")
                       .unwrap();
    assert!(t.disciplines(None).is_ok());
}

More examples are in the examples/ subdirectory.

License

This project is licensed under the MIT license.

About

A rust library for toornament.com service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages