View Single Post
  #5   Spotlight this post!  
Unread 01-09-2014, 20:14
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC

Quote:
Originally Posted by pimathbrainiac View Post
EDIT: It appears that there is something wrong with the API, or the way it works. When I use this url in chrome, I get the response data. When I use the same URL In Java, I get error code 400. Any ideas?
Are you supplying the proper "X-Tba-App-Id" header to identify your request? I can run the following command and get the proper response back.
Code:
curl --header "X-Tba-App-Id:foo:baz:baz" http://www.thebluealliance.com/api/v2/events/2014
If you need some help with using the API through java, take a look at this file in the TBA Android app - it should be a good starting point.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote