Function to execute the request to get the teams where the user is a member
the result of the request as JSONObject
: whether to get only the teams where the user is the owner