You will need to set up a client ID and client secret for authentication. Once you have the api authenticated, you can pull the activity using an action filter. There is a list of the data export events that you can filter one here: Using the V2 Jive Data Export Service (Analytics), but the descriptions are lacking of what is actually included. I started a document to better describe each of the variants: Variant Descriptions for Data Export Events
Here is an example of a uri that I used to pull all thread creates and thread replies:
uri = "/analytics/v1/export/activity/csv/content?filter=action(ACTIVITY_CREATE_THREAD, ACTIVITY_CREATE_MESSAGE)"
uri = "/analytics/v1/export/activity?startIndex=100&count=100&filter=action(ACTIVITY_CREATE_THREAD, ACTIVITY_CREATE_MESSAGE)"
I got DES working but now the problem is that we have enabled 'Cloud Analytics Settings' day before yesterday only so by using above curl command we are able to fetch data from 3rd dec and not for the whole community.
Is there any other solution which will solve our purpose? At this stage, we are really clueless. Would appreciate your help.
Would counting ACTIVITY_CREATE_THREAD and ACTIVITY_CREATE_MESSAGE together ever produce duplicate results? For example, my understanding is that counting ACTIVITY_CREATE_DOCUMENT, ACTIVITY_CREATE_QUESTION, and ACTIVITY_CREATE_THREAD together could produce duplicate data... a thread (i.e. discussion post) can be marked as a question.
1 person found this helpful
Alternatively use the getPeople endpoint of the Rest API to iterate over all users https://developers.jivesoftware.com/api/v3/cloud/rest/PersonService.html#getPeople(String, String, int, int, String, List<String>, String, String) and the use the seach endpoint filtering by author, or the activities resource of the user object to get the content.
An example of something similar is part of our .Net SDK for Jive: JiveDotNetSDK/Examples/DownloadProfiles at master · pokeshot/JiveDotNetSDK · GitHub
Not the most straightforward solution. If you are hosted or on-prem, a database query would probably be the easiest.
You could also use Jive's v3 content API (Jive REST API v3.13 → Content service) and filter by author (similar to the search endpoint mentioned by Nils Heuer but the search endpoint expects a mandatory search query whereas the content endpoint does not). However, the results are paginated and to get the count, you will have to manually call each of the "Next" endpoints till you reach the end and calculate the total count.
It would be really helpful if Jive had provided the total number of results for the search or content v3 API. I have added an Idea requesting for this feature - Jive's core APIs should return the total number of results