mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-06 06:47:28 +00:00
Update lib.rs
This commit is contained in:
parent
9861f51733
commit
d9c4c40749
1 changed files with 1 additions and 1 deletions
|
|
@ -365,7 +365,7 @@ impl TribufuApi {
|
|||
Ok(response.json().await?)
|
||||
}
|
||||
|
||||
pub async fn get_user_info(&self) -> Result<User> {
|
||||
pub async fn get_user_info(&self) -> Result<Profile> {
|
||||
let url = format!("{}/v1/oauth2/userinfo", self.base_url);
|
||||
let headers = self.headers();
|
||||
let response = self.http.get(url).headers(headers).send().await?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue