jeudi 4 mai 2017

Oracle Social Relationship Management BASE_URL

I wannna know what is the BASE_URL of Oracle SRM http://ift.tt/2p1xZ0A

this is my method to see all the messeges

public String getAllMessages() throws IOException {
        String BASE_URL ="";
        String url = BASE_URL + "/engage/v1/messages";
        HttpClient client = HttpClientBuilder.create().build();
        HttpGet request = new HttpGet(url);

        request.addHeader("Authorization", "Bearer ************");
        request.addHeader("Accept", "application/json");

        HttpResponse response = client.execute(request);
        HttpEntity entity = response.getEntity();
        String json = EntityUtils.toString(entity);
        return json;
    }

TY, and have a nice day.




Aucun commentaire:

Enregistrer un commentaire