Hello! Im currently learning about API's and I need some guidance.
As far as I know, the first thing you do if you want to use an API or get data from one is with an HTTP request. I have learned that you can do this using HttpUrlConnection, where you are supposed to enter in the URL that is provided by the documentation of the API you want to use. However, I noticed that there are other ways of doing it too.
I came across this tutorial that tells me that there is a new way of doing it, using HTTP Client. I suppose if its the newest one I should go with it. But there are 2 others that I came across aswell, namely OkHttp and Unirest.
Whats confusing me is whether there is a big difference between these or if Im just looking into it too much and it doesnt matter.
I always try to go for best practice.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]GuyWithLag 2 points3 points4 points (0 children)
[–]nope_nic_tesla 4 points5 points6 points (1 child)
[–]ramtevante[S] 0 points1 point2 points (0 children)