Struct slack_chat_api::users_profile::UsersProfile
source · pub struct UsersProfile {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl UsersProfile
impl UsersProfile
sourcepub async fn get(
&self,
include_labels: bool,
user: &str
) -> Result<UsersProfileGetSchema>
pub async fn get( &self, include_labels: bool, user: &str ) -> Result<UsersProfileGetSchema>
This function performs a GET to the /users.profile.get endpoint.
Retrieves a user’s profile information.
FROM: https://api.slack.com/methods/users.profile.get
Parameters:
token: &str– Authentication token. Requires scope:users.profile:read.include_labels: bool– Include labels for each ID in custom profile fields.user: &str– User to retrieve profile info for.
sourcepub async fn set(&self) -> Result<UsersProfileSetSchema>
pub async fn set(&self) -> Result<UsersProfileSetSchema>
This function performs a POST to the /users.profile.set endpoint.
Set the profile information for a user.
FROM: https://api.slack.com/methods/users.profile.set
Parameters:
token: &str– Authentication token. Requires scope:users.profile:write.