Get a listing of leagues for the specified teams
@param teamIds The ids of the team
@return A mapping of team ids to lists of leagues
@see <a href=https://developer.riotgames.com/api/methods#!/593/1860>Official API documentation</a>
977265
public Future<Map<String, List<LeagueList>>> getLeagues(String... teamIds) {
        return new ApiFuture<>(() -> handler.getLeagues(teamIds));
    }
911217
public Team invitePlayer(long summonerId, TeamId teamId) {
        return client.sendRpcAndWait(SERVICE, "invitePlayer", summonerId, teamId);
    }
68059
@GET
  @Path("teams")
  public Response authorizedTeams(@HeaderParam("Authorization") @DefaultValue("no token") String auth) throws Exception {
    if(!this.isAuth(auth)) {
      return Response.status(Status.FORBIDDEN).build();
    }
    Integer teams[] = getAuthorizedTeams();
    return Response.ok(new Gson().toJson(teams), MediaType.APPLICATION_JSON).build();
  }
1211519
def get_event_teams(self, id, **data):
        
        
        return self.get("/events/{0}/teams/".format(id), data=data)
108511
public function majRankCup()
    {
        $this->majGameRank();
        $teams = $this->findBy(array(), array('gameRank0' => 'DESC', 'gameRank1' => 'DESC', 'gameRank2' => 'DESC', 'gameRank3' => 'DESC'));

        $list = array();
        foreach ($teams as $team) {
            $list[] = $team;
        }

        Ranking::addObjectRank($list, 'rankCup', array('gameRank0', 'gameRank1', 'gameRank2', 'gameRank3'));
        $this->getEntityManager()->flush();
    }
300071
public function listCustomFieldDef($teamId, $optParams = array()) {
      $params = array('teamId' => $teamId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('list', array($params));
      if ($this->useObjects()) {
        return new Google_CustomFieldDefListResponse($data);
      } else {
        return $data;
      }
    }
222455
def get_channel_listing(self):
        
        teams = self.get('/teams')
        for team in teams:
            if team['name'].lower() == self.team:
                channel_listing = self.get('/teams/' + team['id'] + '/channels')
                return channel_listing
814677
private List<Team> getBoardList(ObjectId collectorId) {
        List<Team> boards;
        if(featureSettings.isCollectorItemOnlyUpdate()){
            Set<Team> uniqueTeams = new HashSet<>();
            for(FeatureBoard featureBoard: enabledFeatureBoards(collectorId)){
                Team team = teamRepository.findByTeamId(featureBoard.getTeamId());
                if(team != null){
                    uniqueTeams.add(team);
                }
            }

            boards = new ArrayList<>(uniqueTeams);
        }else {
            boards = teamRepository.findByCollectorId(collectorId);
        }
        return boards;
    }
513985
def find_by_id(self, team, params={}, **options): 
        
        path = "/teams/%s" % (team)
        return self.client.get(path, params, **options)
664287
public function getTeamsFromTeamSet($teamSetId)
    {
        require_once('modules/Teams/TeamSetManager.php');
        $teams = \TeamSetManager::getTeamsFromSet($teamSetId);

        // Fetch more details from the team
        foreach ($teams as $key => $team) {
            $teamFields = $this->sugarBean->getBean('Teams', $team['id'])->fetched_row;
            $teams[$key] = array_merge($team, $teamFields);
        }

        return $teams;
    }
305769
@Override
    public List<T> getAll(final Collection<String> ids) {
        if (ids == null || ids.size() == 0) {
            return Collections.<T> emptyList();
        }

        // we need a List of ids to partition
        final List<String> idList;
        if (ids instanceof List) {
            idList = (List<String>) ids;
        } else {
            idList = Lists.newArrayList(ids);
        }

        // fetch records in groups of X
        List<T> result = null;
        for (final List<String> partition : Lists.partition(idList, config.getPartitionSize())) {
            result = doGetAll(result, partition);
        }

        // make sure we always return non-null list
        if (result == null) {
            return Collections.<T> emptyList();
        }
        return result;
    }
719884
@Override
    public List<Team> getTeams() {
        List<Team> result = new ArrayList<>();
        try {
            String url = featureSettings.getJiraBaseUrl() + (featureSettings.getJiraBaseUrl().endsWith("/") ? "" : "/")
                    + TEMPO_TEAMS_REST_SUFFIX;
            ResponseEntity<String> responseEntity = makeRestCall(url);
            String responseBody = responseEntity.getBody();
            JSONArray teamsJson = (JSONArray) parser.parse(responseBody);
            if (teamsJson != null) {
                for (Object obj : teamsJson) {
                    JSONObject jo = (JSONObject) obj;
                    String teamId = getString(jo, "id");
                    String teamName = getString(jo, "name");
                    Team team = new Team(teamId, teamName);
                    team.setChangeDate("");
                    team.setTeamType("");
                    team.setAssetState("Active");
                    team.setIsDeleted("False");
                    result.add(team);
                }
            }
        } catch (ParseException pe) {
            LOGGER.error("Parser exception when parsing teams", pe);
        } catch (HygieiaException e) {
            LOGGER.error("Error in calling JIRA API", e);
        }
        return result;
    }
75278
@SuppressWarnings("unchecked")
    public List<Team> getTeams() {
        pm.getFetchPlan().addGroup(Team.FetchGroup.ALL.name());
        final Query query = pm.newQuery(Team.class);
        query.setOrdering("name asc");
        return (List<Team>) query.execute();
    }
1167121
public function GetLiveLeagueGamesV1($league_id = null, $match_id = null)
    {
        return $this->_call(__METHOD__, 'GET', array('league_id' => $league_id, 'match_id' => $match_id));
    }
1172577
public function team($teamId)
	{
		$team = $this->info['teams'];
		if (isset($team[$teamId]))
		{
			return $team[$teamId];
		}

		return null;
	}
1174462
@Override
    public List<Team>  getTeamsByCollector(ObjectId collectorId) {
        List<Team> teams = teamRepository.findByCollectorId(collectorId);

        return teams;
    }
1228058
public Range<Invoice> listTeamInvoices(String team) {
        return connection.execute(new TeamInvoiceList(team), apiKey);
    }