1.0.1 • Published 7 years ago

football-data v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Football-data.org for Angular 2/4

This is a Angular 2/4 library for Football-data.org

Get your API Key here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development.

Prerequisites

What things you need to install the software and how to install them

npm

Installing

A step by step series of examples that tell you have to get a development env running

Just install the library with npm

npm install --save football-data

Using

import { FootballDataModule } from 'football-data';

export function footballDataConfig(): string{
	return 'Your API_KEY here';
}

Add this line in the imports array

FootballDataModule.forRoot(footballDataConfig);

Then, in your service/component

import { FootballDataService } from 'football-data';

We use SemVer for versioning.

API

getLeagues(season?)
getLeague(leagueID)
getLeagueTable(leagueID)
getLeagueFixtures(leagueID, timeFrame?, matchday?)

getTeams(leagueID)
getTeam(teamID)
getPlayers(teamID)

getTeamFixtures(teamID, timeFrame?,	venue?, season?)
getFixtures(timeFrame?)
getFixture(fixtureID, head2head?)

Authors

1.0.1

7 years ago

1.0.0

7 years ago