TeamClient
public class TeamClient
An iOS client wrapper of the Cisco Webex Teams REST API .
Since
1.2.0-
Lists teams to which the authenticated user belongs.
Since
1.2.0Declaration
Swift
public func list(max: Int? = nil, queue: DispatchQueue? = nil, completionHandler: @escaping (ServiceResponse<[Team]>) -> Void)Parameters
maxThe maximum number of teams in the response.
queueThe queue on which the completion handler is dispatched.
completionHandlerA closure to be executed once the request has finished.
Return Value
Void
-
Creates a team. The authenticated user is automatically added as a member of the team. See the Team Memberships API to learn how to add more people to the team.
Since
1.2.0See
see TeamMemebershipClient APIDeclaration
Swift
public func create(name: String, queue: DispatchQueue? = nil, completionHandler: @escaping (ServiceResponse<Team>) -> Void)Parameters
titleA user-friendly name for the team.
queueThe queue on which the completion handler is dispatched.
completionHandlerA closure to be executed once the request has finished.
Return Value
Void
-
Retrieves the details for a team by id.
Since
1.2.0Declaration
Swift
public func get(teamId: String, queue: DispatchQueue? = nil, completionHandler: @escaping (ServiceResponse<Team>) -> Void)Parameters
teamIdThe identifier of the team.
queueThe queue on which the completion handler is dispatched.
completionHandlerA closure to be executed once the request has finished.
Return Value
Void
-
Updates the details for a team by id.
Since
1.2.0Declaration
Swift
public func update(teamId: String, name: String, queue: DispatchQueue? = nil, completionHandler: @escaping (ServiceResponse<Team>) -> Void)Parameters
teamIdThe team id.
nameA user-friendly name for the team.
queueThe queue on which the completion handler is dispatched.
completionHandlerA closure to be executed once the request has finished.
Return Value
Void
-
Deletes a team by id.
Since
1.2.0Declaration
Swift
public func delete(teamId: String, queue: DispatchQueue? = nil, completionHandler: @escaping (ServiceResponse<Any>) -> Void)Parameters
teamIdThe team id.
queueThe queue on which the completion handler is dispatched.
completionHandlerA closure to be executed once the request has finished.
Return Value
Void
View on GitHub
TeamClient Class Reference