/IDOTA2Teams_570/GetTeamInfo/v1/

@param uint32 $team_id Team ID that you're requesting info about
@param uint32 $league_id League ID for which you're requesting all regisered teams info
492773
public function GetTeamInfoV1($team_id = null, $league_id = null)
    {
        return $this->_call(__METHOD__, 'GET', array('team_id' => $team_id, 'league_id' => $league_id));
    }
781843
public boolean switchToPlayer(long id, PlayerSide team) {
        return client.sendRpcAndWait(SERVICE, "switchObserverToPlayer", id, team.id);
    }
871194
func (m *MMClient) GetTeamName(teamId string) string { //nolint:golint
	m.RLock()
	defer m.RUnlock()
	for _, t := range m.OtherTeams {
		if t.Id == teamId {
			return t.Team.Name
		}
	}
	return ""
}
1211519
def get_event_teams(self, id, **data):
        
        
        return self.get("/events/{0}/teams/".format(id), data=data)
524924
public function removeTeamMember($id_or_email)
    {
        $key = strpos($id_or_email, '@') ? 'email_address' : 'account_id';

        $response = $this->rest->post(
            static::TEAM_REMOVE_MEMBER_PATH,
            array($key => $id_or_email)
        );

        $this->checkResponse($response);

        return new Team($response);
    }
1359632
def get_players(self, team):
        
        team_id = self.__get_team_id(team)
        self.logger.debug(f'Getting players of team {team_id}.')
        return self._request('teams', team_id, 'players')
732186
protected function getTeam($t)
    {
        $teamInfo = (array)$t;
        $team = new Team();
        $fields = array_keys($teamInfo);
        foreach ($fields as $field) {
            // I hope, that API-response will be changed and players_ids, leagues_ids will become arrays
            if (preg_match('/^player_\d+_account_id$/', $field)) {
                $team->addPlayerId($teamInfo[$field]);
                continue;
            }
            if (preg_match('/^league_id_\d+$/', $field)) {
                $team->addLeagueId($teamInfo[$field]);
                continue;
            }
            $team->set($field, (string)$teamInfo[$field]);
        }
        return $team;
    }
276222
public static function fetchTeam($team = null)
    {
        if (is_null($team) || !Config::get('laratrust.use_teams')) {
            return null;
        }

        return static::getIdFor($team, 'team');
    }
121676
public function getById($teamId, array $queryParams = [])
    {
        $response = $this->api->teams()->getById($teamId, $queryParams);

        return new TeamResponse($response);
    }
1098278
public Future<Map<String, List<LeagueItem>>> getLeagueEntries(String... teamIds) {
        return new ApiFuture<>(() -> handler.getLeagueEntries(teamIds));
    }
416149
def url(sport, league_id, team_id, start_date=None):
    
    url = '%s/%s/%s/' % (SPORT_URLS[sport], league_id, team_id)
    if start_date is not None:
        url += 'team?&date=%s' % start_date
    return url
207603
public function listTeamRepos(int $id): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/teams/:id/repos', (string)$id));
    }
830008
@SuppressWarnings("unchecked")
    public MappedLdapGroup getMappedLdapGroup(final Team team, final String dn) {
        final Query query = pm.newQuery(MappedLdapGroup.class, "team == :team && dn == :dn");
        final List<MappedLdapGroup> result = (List<MappedLdapGroup>) query.execute(team, dn);
        return Collections.isEmpty(result) ? null : result.get(0);
    }
977265
public Future<Map<String, List<LeagueList>>> getLeagues(String... teamIds) {
        return new ApiFuture<>(() -> handler.getLeagues(teamIds));
    }
51452
def select_team(team_id: nil, team_name: nil)
      t_id = (team_id || ENV['FASTLANE_ITC_TEAM_ID'] || '').strip
      t_name = (team_name || ENV['FASTLANE_ITC_TEAM_NAME'] || '').strip

      if t_name.length > 0 && t_id.length.zero? # we prefer IDs over names, they are unique
        puts("Looking for App Store Connect Team with name #{t_name}") if Spaceship::Globals.verbose?

        teams.each do |t|
          t_id = t['contentProvider']['contentProviderId'].to_s if t['contentProvider']['name'].casecmp(t_name).zero?
        end

        puts("Could not find team with name '#{t_name}', trying to fallback to default team") if t_id.length.zero?
      end

      t_id = teams.first['contentProvider']['contentProviderId'].to_s if teams.count == 1

      if t_id.length > 0
        puts("Looking for App Store Connect Team with ID #{t_id}") if Spaceship::Globals.verbose?

        # actually set the team id here
        self.team_id = t_id
        return self.team_id
      end

      # user didn't specify a team... #thisiswhywecanthavenicethings
      loop do
        puts("Multiple #{'App Store Connect teams'.yellow} found, please enter the number of the team you want to use: ")
        if ENV["FASTLANE_HIDE_TEAM_INFORMATION"].to_s.length == 0
          puts("Note: to automatically choose the team, provide either the App Store Connect Team ID, or the Team Name in your fastlane/Appfile:")
          puts("Alternatively you can pass the team name or team ID using the `FASTLANE_ITC_TEAM_ID` or `FASTLANE_ITC_TEAM_NAME` environment variable")
          first_team = teams.first["contentProvider"]
          puts("")
          puts("  itc_team_id \"#{first_team['contentProviderId']}\"")
          puts("")
          puts("or")
          puts("")
          puts("  itc_team_name \"#{first_team['name']}\"")
          puts("")
        end

        # We're not using highline here, as spaceship doesn't have a dependency to fastlane_core or highline
        teams.each_with_index do |team, i|
          puts("#{i + 1}) \"#{team['contentProvider']['name']}\" (#{team['contentProvider']['contentProviderId']})")
        end

        unless Spaceship::Client::UserInterface.interactive?
          puts("Multiple teams found on App Store Connect, Your Terminal is running in non-interactive mode! Cannot continue from here.")
          puts("Please check that you set FASTLANE_ITC_TEAM_ID or FASTLANE_ITC_TEAM_NAME to the right value.")
          raise "Multiple App Store Connect Teams found; unable to choose, terminal not interactive!"
        end

        selected = ($stdin.gets || '').strip.to_i - 1
        team_to_use = teams[selected] if selected >= 0

        if team_to_use
          self.team_id = team_to_use['contentProvider']['contentProviderId'].to_s # actually set the team id here
          return self.team_id
        end
      end
    end
444193
function readTeam ({ id, organizationId }, cb) {
      const job = {
        team: {}
      }

      let promise = null
      if (typeof cb !== 'function') [promise, cb] = asyncify()

      async.applyEachSeries([
        (job, next) => {
          Joi.validate({ id, organizationId }, validationRules.readTeam, (err) => {
            if (err) return next(Boom.badRequest(err))
            next()
          })
        },
        (job, next) => {
          job.client = db
          job.id = id
          job.organizationId = organizationId
          next()
        },
        loadTeams,
        loadTeamUsers,
        loadTeamPolicies
      ], job, (err) => {
        if (err) return cb(err)
        return cb(null, job.team)
      })

      return promise
    }
366179
public function getTeamMembers($teamId)
    {
        $team = $this->sugarBean->getBean('Teams', $teamId);
        $users = $team->get_team_members();

        foreach ($users as $key => $user) {
            $users[$key] = $user->fetched_row;
        }

        return $users;
    }