Как использовать это значение токена для доступа к конкретному ресурсу с помощью другого вызова API REST GET
Поскольку API защищен с помощью OAuth2, токен доступа (токен носителя), который извлекается извызов API токена должен быть передан в заголовке вызова API GET для доступа к ресурсу.
Простой пример выполнения вызова Rest в Java:
String Url = "http://www.testme.com/api/";
RestTemplate restTemplate = new RestTemplate();
//setting the headers
HttpHeaders headers = new HttpHeaders();
headers.add("Authorization", "Bearer " + token_value);
//set more header value if required
HttpEntity entity = new HttpEntity(headers);
//executing the GET call
HttpEntity<String> response = restTemplate.exchange(Url, HttpMethod.GET, entity, String.class);
//retrieving the response
System.out.println("Response"+ response.getBody());