简体   繁体   English

我如何使用第三方Api,例如这个网站(https://haveibeenpwned.com/API/v2)到我的java代码中

[英]how do I use 3rd party Api for example this website(https://haveibeenpwned.com/API/v2) into my java code

I want to use api of https://haveibeenpwned.com/API/v2 website into my java code. 我想在我的java代码中使用https://haveibeenpwned.com/API/v2网站的api。 what should I do ? 我该怎么办 ?

what are the steps and if possible explain me with the help of code. 有什么步骤,如果可能的话,在代码的帮助下解释我。

Retrofit is an Android library used to make HTTP requests. Retrofit是一个用于发出HTTP请求的Android库。 It sounds like it would be perfect for what you need. 听起来它对你需要的东西来说是完美的。 If you are unsure on how to use this or about reading the docs, then this tutorial helped me a great deal when I first started. 如果您不确定如何使用它或阅读文档,那么教程在我刚开始时帮助了我很多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM