Struct slack_chat_api::admin_teams::AdminTeams
source · pub struct AdminTeams {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl AdminTeams
impl AdminTeams
sourcepub async fn create(&self) -> Result<DndEndSchema>
pub async fn create(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.teams.create endpoint.
Create an Enterprise team.
FROM: https://api.slack.com/methods/admin.teams.create
Parameters:
token: &str– Authentication token. Requires scope:admin.teams:write.
sourcepub async fn list(&self, limit: i64, cursor: &str) -> Result<DndEndSchema>
pub async fn list(&self, limit: i64, cursor: &str) -> Result<DndEndSchema>
This function performs a GET to the /admin.teams.list endpoint.
List all teams on an Enterprise organization
FROM: https://api.slack.com/methods/admin.teams.list
Parameters:
token: &str– Authentication token. Requires scope:admin.teams:read.limit: i64– The maximum number of items to return. Must be between 1 - 100 both inclusive.cursor: &str– Setcursortonext_cursorreturned by the previous call to list items in the next page.