leave

fun leave(team: Team): JSONObject

Function to execute the request to leave from a team

Return

the result of the request as JSONObject

Parameters

team

: the team from leave


fun leave(teamId: String): JSONObject

Function to execute the request to leave from a team

Return

the result of the request as JSONObject

Parameters

teamId

: the identifier of the team from leave