aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..ded975e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,20 @@
+use reqwest::blocking::Client;
+
+
fn main() {
- println!("Hello, world!");
+ let client = Client::new();
+
+ let response = client.request(
+ reqwest::Method::GET,
+ format!(
+ "https://api.github.com/users/{}/repos",
+ "teddywing",
+ ),
+ )
+ .header("Accept", "application/vnd.github.v3+json")
+ .header("User-Agent", "reflectub")
+ .send()
+ .unwrap();
+
+ dbg!(&response);
}