Consuming RESTful APIs using Java

后端 未结 2 1787
暗喜
暗喜 2021-01-04 17:49

How would you consume a RESTful API using Java with probably just the standard packages? For ex: Twitter API. I know there are great Java libraries to access it, but how wou

2条回答
  •  没有蜡笔的小新
    2021-01-04 18:27

    Well, there are many ways you could access RESTful API using Java third party libraries, like using Apache Http Client or using Sun Jersey API.

    You could also use the native java.net.HttpURLConnection to consume REST Services

提交回复
热议问题