How to make an HTTP request in Java to fetch real-time Bitcoin price
Автор: Pragmatic Ways
Загружено: 2023-12-09
Просмотров: 520
This video teaches how to make HTTP requests in Java, using a FREE api that fetches real-time Bitcoin and other crypto currency prices.
1:39 - Create new project
3:22 - High level overview of system design
5:43 - Create startMenu method
12:57 - Create CryptoApi class
23:42 - Stub method for getting current coin price
26:56 - Introduce CoinCap API
29:42 - Introduce HttpRequest API
36:53 - Import Jackson Maven dependency
38:23 - Create Java POJO for Crypto Coin data response
42:13 - Use ObjectMapper to map JSON into Java class
45:39 - Parse cryptocurrency price into decimal format
You can find the refactored code for this project on my GitHub: https://github.com/PragmaticWays/Cryp...
Relevant Links used in video:
CoinCap API: https://docs.coincap.io/
Get Java input: https://www.w3schools.com/java/java_u...
Make Java HTTP request: https://www.baeldung.com/java-httpcli...
JSON to POJO converter: https://json2csharp.com/code-converte...
Maven Jackson Dependency: https://mvnrepository.com/artifact/co...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: