use githubapi::{GitHubApi, ToJsonString};
use std::env;
fn main() {
let username = env::var("GH_USER").expect("GH_USER not defined.");
let password = env::var("GH_PASS").expect("GH_PASS not defined.");
let gh = GitHubApi::new(&username, &password);
let license = gh.get_license("sous-chefs", "postgresql");
println!("{:#?}", license.unwrap().result.to_json_string());
}