Compare commits
2 Commits
1d8c0d5fc2
...
f1868cd300
| Author | SHA1 | Date |
|---|---|---|
|
|
f1868cd300 | |
|
|
b41090578d |
|
|
@ -37,6 +37,7 @@ impl Requester {
|
|||
pub async fn get_conferences(&self) -> anyhow::Result<Value> {
|
||||
let url = format!("{}{}", self.base, *CONFERENCES_ENDPOINT);
|
||||
let req = self.client.get(url)
|
||||
.timeout(tokio::time::Duration::from_secs(10))
|
||||
.header("accept", "application/json")
|
||||
.header("x-api-key", &self.api_key);
|
||||
let resp = req.send().await;
|
||||
|
|
@ -83,6 +84,7 @@ impl Requester {
|
|||
for conf in conferences {
|
||||
let url = format!("{}{}{}", self.base, *USERS_ENDPOINT, &conf.1);
|
||||
let req = self.client.get(url)
|
||||
.timeout(tokio::time::Duration::from_secs(10))
|
||||
.header("accept", "application/json")
|
||||
.header("x-api-key", &self.api_key);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue