Skip to content

Latest commit

 

History

History
85 lines (65 loc) · 2.82 KB

CoachesApi.md

File metadata and controls

85 lines (65 loc) · 2.82 KB

CFBSharp.Api.CoachesApi

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

Method HTTP request Description
GetCoaches GET /coaches Coaching 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

Name Type Description Notes
firstName string First name filter [optional]
lastName string Last name filter [optional]
team string Team name filter [optional]
year int? Year filter [optional]
minYear int? Minimum year filter (inclusive) [optional]
maxYear int? 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]