0.1.7 • Published 10 years ago

kimono-worldcup-api-wrapper v0.1.7

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

kimono-worldcup-api-wrapper

npm API wrapper for Kimono World Cup API

Install

npm install kimono-worldcup-api-wrapper

Dependencies

- [q]: https://github.com/kriskowal/q-connection
- [querystring]: https://github.com/Gozala/querystring
- [request]: http://github.com/mikeal/request

Usage

//Include the package
var worldCup = require('kimono-worldcup-api-wrapper');

//Initialize with API Key
var worldCupApi = worldCup('*** Kimono API Key***');

worldCupApi.get.players().done(function(res){
	console.log(res);
});

Endpoints

Players

worldCupApi.get.Players(filters(optional))
	- Takes Optional filters (ie '{ sort : position }')
- Returns a promise with the API response
worldCupApi.get.players().done(function(res){
	console.log(res);
});

Player

worldCupApi.get.Player(id, filters(optional))
	- Required player ID
	- Takes Optional filters (ie '{ sort : position }')
- Returns a promise with the API response 
worldCupApi.get.player('** players ID**').done(function(res){
	console.log(res);
});

Teams

worldCupApi.get.Teams(filters(optional))
	- Takes Optional filters (ie '{ sort : position }')
- Returns a promise with the API response
worldCupApi.get.players().done(function(res){
	console.log(res);
});

Team

worldCupApi.get.Team(id, filters(optional))
	- Required Team ID
	- Takes Optional filters (ie '{ sort : position }')
- Returns a promise with the API response
worldCupApi.get.Teams().done(function(res){
	console.log(res);
});

Matches

worldCupApi.get.Matches(filters(optional))
	- Takes Optional filters (ie '{ sort : position }')
- Returns a promise with the API response

Match

worldCupApi.get.Match(id, filters(optional))
	- Required Match ID
	- Takes Optional filters (ie '{ sort : position }')
- Returns a promise with the API response

PlayerSeasonStats

worldCupApi.get.player_season_stats(id(optional), filters(optional))
	- Optional Player ID
	- Takes Optional filters (ie '{ sort : position }')
- Returns a promise with the API response

Filters

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago