Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "accDtls": {
- "accN": "1234567889",
- "accType": "Checking",
- "mobileStatus": "C",
- "homePhone": "911",
- "serviceAddress": {
- "address": " 123 lalaland ",
- "poBox": null,
- "city": "Mexico",
- "state": "MA",
- "zipcode": "111111-23232322"
- },
- "custId": null,
- },
- "idDtls": null,
- "resources": {
- "pSources": {
- "pSourceDtls": [
- {
- "status": null,
- "address": null,
- "newStatus": null,
- "macAddress": null,
- "make": null,
- "model": null,
- "mode": null,
- "serialNumber": null
- }
- ]
- },
- "SomeResources": null
- },
- "Emails": {
- "first": "testing123@gmail.com"
- }
- }
- OAuth2RestTemplate restTemplate = new OAuth2RestTemplate(getClientCredentialResourceDetails(), new DefaultOAuth2ClientContext());
- ResponseEntity<String> jsonString = OAuth2RestTemplate.exchange(url, HttpMethod.GET, null, String.class);
- String jsonString = jsonString.getBody();
- String json = objectMapper.writeValueAsString(jsonString);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement