MCPcopy Create free account
hub / github.com/brocode/fw / github_api

Function github_api

src/ws/github/mod.rs:8–14  ·  view source on GitHub ↗
(token: &str)

Source from the content-addressed store, hash-verified

6use serde::{Deserialize, Serialize};
7
8pub fn github_api(token: &str) -> Result<GithubApi, AppError> {
9 let client = reqwest::blocking::Client::new();
10 Ok(GithubApi {
11 client,
12 token: token.to_string(),
13 })
14}
15
16pub struct GithubApi {
17 client: reqwest::blocking::Client,

Callers 1

org_importFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected