codewars-api 1.0.0

A library for interacting with the Codewars API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Simple example that shows how to  read username from stdin and print skills of a user

extern crate codewars_api;
extern crate tokio;

use codewars_api::rest_api::client::RestCodewarsClient;

#[tokio::main]
async fn main() {
    // Initialize client
    let client = RestCodewarsClient::new();
    println!("Name of first authored challenge: '{}'", client.get_authored_challenges("Dentzil").await.unwrap().data.first().unwrap().name);
}