|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
Re: TBA-API to end all TBA-APIs. (Java)
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.
|
|
#4
|
|||||
|
|||||
|
Re: TBA-API to end all TBA-APIs. (Java)
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.
|
|
#5
|
||||
|
||||
|
Re: TBA-API to end all TBA-APIs. (Java)
Quote:
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. |
|
#6
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|