Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   TBA-API to end all TBA-APIs. (Java) (http://www.chiefdelphi.com/forums/showthread.php?t=154233)

techguy9984 25-01-2017 13:57

TBA-API to end all TBA-APIs. (Java)
 
With the new robotics season already started up, I figured a powerful TBA API would be useful to some of you. I built a scouting app a while back and was noticing that all the Java APIs that I found on the TBA api-docs page didn't work very well and were always breaking.

So I created my own API. Everything (all methods) has (have) been tested thoroughly on both the PC and Android. It contains a method for EVERY single pull request listed on the TBA api page. It's also got tons of configuration settings for how to pull data, along with a testing class, a full-fledged github wiki with installation, tutorials, and working examples. Let me know if you find this project useful! Knowing that people are using and enjoy my API drives me to make it better!

Here's the link:
https://github.com/techguy9984/TBA-API

Mike Schreiber 26-01-2017 13:39

Re: TBA-API to end all TBA-APIs. (Java)
 
This would be really cool if I used Java. I'm not very good at it myself, so I've been using requests in Python for my TBA pulls, it makes things pretty user friendly. If I ever make the switch I'll be sure to keep this in mind. Thanks for posting.

lucas.alvarez96 26-01-2017 21:20

Re: TBA-API to end all TBA-APIs. (Java)
 
Quote:

Originally Posted by Mike Schreiber (Post 1636680)
This would be really cool if I used Java. I'm not very good at it myself, so I've been using requests in Python for my TBA pulls, it makes things pretty user friendly. If I ever make the switch I'll be sure to keep this in mind. Thanks for posting.

Are you using a certain library or just urllib requests? I tried using the Python library recommended on the API docs by TBA but kept on getting a 403 error. Apparently they're blocking calls without a User-Agent.

Eugene Fang 26-01-2017 22:37

Re: TBA-API to end all TBA-APIs. (Java)
 
Quote:

Originally Posted by lucas.alvarez96 (Post 1636909)
Are you using a certain library or just urllib requests? I tried using the Python library recommended on the API docs by TBA but kept on getting a 403 error. Apparently they're blocking calls without a User-Agent.

Yeah that didn't used to be the case, but then we put everything behind Cloudflare, which apparently requires a user agent to be set. Must have broken that library.

Mike Schreiber 27-01-2017 00:03

Re: TBA-API to end all TBA-APIs. (Java)
 
Quote:

Originally Posted by lucas.alvarez96 (Post 1636909)
Are you using a certain library or just urllib requests? I tried using the Python library recommended on the API docs by TBA but kept on getting a 403 error. Apparently they're blocking calls without a User-Agent.

Yes I am using the requests library, I couldn't get urllib to work either. You can get requests from here.

I recommend the pip install since it's really easy. If you don't have pip the walk through is pretty good.

PM me and I can send you some sample code, I don't want to derail this thread too much.

endreman0 30-01-2017 00:06

Re: TBA-API to end all TBA-APIs. (Java)
 
If Maven isn't too much hassle to you, I'd appreciate it. It makes updating super easy, and is how I normally build projects.


All times are GMT -5. The time now is 03:08.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi