Hi everyone, i'm trying to retrieving information about my conversations in a range; I use the "postAnalytic Conversations Details Query(body)" but responses and error:
// Call conversation API, pass date inputted to extract conversationIds needed
try {
ConversationQuery body ;//new ConversationQuery().interval(_dates);
body = new ConversationQuery();
body.setInterval(_dates);
PagingSpec pagin= new PagingSpec();
pagin.setPageNumber(1);
pagin.setPageSize(10);
body.paging(pagin);
System.out.println(body.toString());
AnalyticsConversationQueryResponse result = _conversationsApi.postAnalyticsConversationsDetailsQuery(body);
extractConversationDetails(result);
} catch (Exception e) {
System.err.println("Exception when calling ConversationsApi#postAnalyticsConversationsDetailsQuery");
e.printStackTrace();
}
i have exactly this code... but it don't work. I tried to run the post/analytics/details Query in the api developer tools and it bringme the correct response.