0.9.0 • Published 6 years ago

bluealliance v0.9.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

bluealliance

npm docs npm Build Status GitHub code size in bytes npm

NPM

bluealliance is a node.js wrapper for The Blue Alliance's web api that is optimized for scouting software.

Installation

Open a terminal in your projects directory and type:

npm install bluealliance

bluealliance and it's dependencies should now be installed in your node_modules folder

Documentation

Documentation for this wrapper can be found at http://7308deep.vision/bluealliance

Examples

Example 1: Using getTeam() to get a team name.

  var BlueAlliance = require("bluealliance");
  var tba = new BlueAlliance("Your API key here");

  var main = async function() {
      var team = await tba.getTeam(7308);
      console.log(team.nickname); // Prints "DeepVision"
  }

  main();

Example 2: Using getMatchesAtEvent() and getTeamsInMatch() to get info on a specific team from a specific event and match.

  var BlueAlliance = require("bluealliance");
  var tba = new BlueAlliance("Your API key here");

  var main = async function() {
      var event = await tba.getEvent('casj', 2017); // SVR 2017
      var matches = await tba.getMatchesAtEvent(event);
      var teams = await tba.getTeamsInMatch(matches[12]); // 12th match
      console.log(teams.red[1].nickname); // Prints "The Funky Monkeys", playing as the second alliance member in the 12th match at SVR 2017
  }

  main();
0.9.0

6 years ago

0.8.8

6 years ago

0.8.9

6 years ago

0.8.7

6 years ago

0.8.6

6 years ago

0.8.5

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.4

6 years ago

0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago