Skip to main content

load_github_json

Function load_github_json 

Source
pub async fn load_github_json(path: &str) -> Result<Value, HTTPJSONError>
Expand description

Fetches a GitHub REST API endpoint and parses the response as JSON.

path is the API path without the host, e.g. repos/serde-rs/serde or repos/serde-rs/serde/tags. The GITHUB_TOKEN environment variable, if set, is sent as a bearer token to raise the rate limit.