TeamMembers() public static method

returns the Uri for team members list
public static TeamMembers ( int id ) : Uri
id int The team id
return Uri
        public Task <IReadOnlyList <User> > GetAllMembers(int id, ApiOptions options)
        {
            Ensure.ArgumentNotNull(options, nameof(options));

            var endpoint = ApiUrls.TeamMembers(id);

            return(ApiConnection.GetAll <User>(endpoint, options));
        }
Example #2
0
        /// <summary>
        /// Returns all members of the given team.
        /// </summary>
        /// <remarks>
        /// https://developer.github.com/v3/orgs/teams/#list-team-members
        /// </remarks>
        /// <param name="id">The team identifier</param>
        /// <param name="options">Options to change API behaviour.</param>
        public Task <IReadOnlyList <User> > GetAllMembers(int id, ApiOptions options)
        {
            Ensure.ArgumentNotNull(options, "options");

            var endpoint = ApiUrls.TeamMembers(id);

            return(ApiConnection.GetAll <User>(endpoint, null, AcceptHeaders.NestedTeamsPreview, options));
        }
        public Task <IReadOnlyList <User> > GetAllMembers(int id, TeamMembersRequest request, ApiOptions options)
        {
            Ensure.ArgumentNotNull(request, nameof(request));
            Ensure.ArgumentNotNull(options, nameof(options));

            var endpoint = ApiUrls.TeamMembers(id);

            return(ApiConnection.GetAll <User>(endpoint, request.ToParametersDictionary(), options));
        }
Example #4
0
        /// <summary>
        /// Returns all members of the given team.
        /// </summary>
        /// <param name="id">The team identifier</param>
        /// <remarks>
        /// https://developer.github.com/v3/orgs/teams/#list-team-members
        /// </remarks>
        /// <returns>A list of the team's member <see cref="User"/>s.</returns>
        public Task <IReadOnlyList <User> > GetAllMembers(int id)
        {
            var endpoint = ApiUrls.TeamMembers(id);

            return(ApiConnection.GetAll <User>(endpoint));
        }