Advertisement
Guest User

TBA-API Example 2

a guest
Jan 25th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.91 KB | None | 0 0
  1.     public static void main(String[] args) {
  2.         // Get everything set up
  3.         TBA.setID("Roblu", "Scouting app", "V5");
  4.         TBA tba = new TBA();
  5.         // Pull the team
  6.         Team team = tba.getTeam(4859);
  7.         // Print some information
  8.         System.out.println(team.name);
  9.         System.out.println(team.team_number);
  10.         System.out.println(team.website);
  11.         System.out.println(team.locality);
  12.         System.out.println(team.region);
  13.         System.out.println(team.country_name);
  14.         System.out.println(team.location);
  15.         System.out.println(team.key);
  16.         System.out.println(team.nickname);
  17.         System.out.println(team.rookie_year);
  18.         System.out.println(team.motto);
  19.     }
  20.    
  21. Console output:
  22.  
  23. McNeilus Steel, Inc./The University of Minnesota College of Science and Engineering/Best Buy Company & Byron Senior High School
  24. 4859
  25. http://byron4859.weebly.com/
  26. Byron
  27. Minnesota
  28. USA
  29. Byron, Minnesota 55920, USA
  30. frc4859
  31. The CyBears
  32. 2013
  33. Robotics is for Everyone
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement