agu3rra / github-user-graph

A simple Rust crate to interact with Github's users API endpoint from Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github User Graph

This crate uses the GitHub's REST API to obtain the list of followers and other users a given GitHub user follows. It's meant to be used as an exercise and code reference for interations with HTTP API's in Rust using tokio and reqwest. Additionally it's also a useful exercise on how to create a Rust crate (library). Finally, it could potentially be used in tandem with neo4j in order to programatically generate a graph representing a user and its relationships.

Install

cargo install github-user-graph

Usage

use github_user_graph::{Github, UserGraph};

let gh = Github::new(
    base_url: "https://github.com/api/v3",
    token: "aTokenWithReadAccessToUsers",
);
let user_graph:UserGraph = gh.get_user("agu3rra")

About

A simple Rust crate to interact with Github's users API endpoint from Rust.

License:MIT License


Languages

Language:Rust 100.0%