Last active
April 18, 2019 19:38
-
-
Save benelog/36f4294fa484565dcc654b6c6b83e3e5 to your computer and use it in GitHub Desktop.
RestTemplate 활용
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun getResponse(disqusOauthUrl: String): ResponseEntity<String> { | |
val endpoint = URI.create(disqusOauthUrl) | |
val req = RequestEntity<Any>(HttpMethod.GET, endpoint) | |
val resType = object : ParameterizedTypeReference<String>() {} | |
return RestTemplate().exchange<String>(req, resType) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment