Slack User API Methods (Go Back)
This PHP class provides methods to interact with the Slack User API. Below are instructions on how to use each method.
list(
?string $cursor = null,
bool $includeLocale = false,
int $limit = 0,
string $teamId = null
)
Retrieve a list of users in a team.
conversations(
?string $cursor = null,
bool $excludeArchived = false,
int $limit = 100,
string $teamId = null,
array $channelTypes = ['public_channel', 'private_channel', 'mpim', 'im'],
string $userId
)
Retrieve a list of conversations for a user.
deletePhoto()
Delete a user's profile photo.
getPresence(
?string $userId = null
)
Retrieve a user's presence information.
identity()
Retrieve a user's identity information.
info(
?bool $includeLocale = null
)
Retrieve information about a user.
lookupByEmail(
string $email
)
Lookup a user by their email address.
setActive()
Set a user's presence status as active.
setPhoto(
$image,
?string $cropW = null,
?string $cropX = null,
?string $cropY = null
)
Set a user's profile photo.
setPresence(
$presence
)
Set a user's presence status.
getProfile(
?string $userId = null,
?bool $includeLabels = null
)
Retrieve a user's profile information.
setProfile(
?string $name = null,
?array $profile = null,
?string $userId = null,
?string $value = null
)
Set a user's profile information.