I have got my session token (RDP Token), is any java sample to request ESG data e.g. https://api.refinitiv.com/data/environmental-social-governance/v1/views/basic?universe=IBM.N
StringBuilder url = new StringBuilder("https://api.refinitiv.com/data/environmental-social-governance/v1/views/basic?universe=IBM.N");
HttpGet request = new HttpGet(url.toString());
request.addHeader("Authorization", "Bearer " + sessionToken);
CloseableHttpClient httpClient = HttpClients.createDefault();
CloseableHttpResponse httpResponse = httpClient.execute(request);
BufferedReader reader = new BufferedReader(new InputStreamReader(
httpResponse.getEntity().getContent()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = reader.readLine()) != null) {
response.append(inputLine);
}
System.out.println(response.toString());
httpClient.close();
{"error":{"id":"107c01c3-fbfb-4217-8169-dadb2439b61d","code":"insufficient_scope","message":"access denied. Scopes required to access the resource: [trapi.data.esg.views-basic.read]. Missing scopes: [trapi.data.esg.views-basic.read]","status":"Forbidden"}}
This is my code, but I got above error
Any ideas?