CFBSharp.Api.CoachesApi

April 11, 2021 ยท View on GitHub

All URIs are relative to https://api.collegefootballdata.com

MethodHTTP requestDescription
GetCoachesGET /coachesCoaching records and history

GetCoaches

ICollection GetCoaches (string firstName = null, string lastName = null, string team = null, int? year = null, int? minYear = null, int? maxYear = null)

Coaching records and history

Coaching history

Example

using System;
using System.Diagnostics;
using CFBSharp.Api;
using CFBSharp.Client;
using CFBSharp.Model;

namespace Example
{
    public class GetCoachesExample
    {
        public void main()
        {
            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new CoachesApi();
            var firstName = firstName_example;  // string | First name filter (optional) 
            var lastName = lastName_example;  // string | Last name filter (optional) 
            var team = team_example;  // string | Team name filter (optional) 
            var year = 56;  // int? | Year filter (optional) 
            var minYear = 56;  // int? | Minimum year filter (inclusive) (optional) 
            var maxYear = 56;  // int? | Maximum year filter (inclusive) (optional) 

            try
            {
                // Coaching records and history
                ICollection<Coach> result = apiInstance.GetCoaches(firstName, lastName, team, year, minYear, maxYear);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CoachesApi.GetCoaches: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
firstNamestringFirst name filter[optional]
lastNamestringLast name filter[optional]
teamstringTeam name filter[optional]
yearint?Year filter[optional]
minYearint?Minimum year filter (inclusive)[optional]
maxYearint?Maximum year filter (inclusive)[optional]

Return type

ICollection

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]