mirror of
https://github.com/tribufu/sdk-rust
synced 2025-06-15 18:54:19 +00:00
Update lib.rs
This commit is contained in:
@ -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?;
|
||||
|
Reference in New Issue
Block a user