1 Reply Latest reply on May 30, 2017 11:15 AM by Ryan Rutan

    Query last content on using DES (data export service)

    sbecker

      Hi,

      I am new in Jive.

      For text analysis I need to get all content of any thread. I had a first test using ".../lastday". When I checked the response I can see that there is subject. But no payload (?).

       

      Do I get all infotmation from a thread?

      My intention is to run an export every e.g. 1 hour. The query will using after and befor (or just after).

       

      Many thanks in advance

       

      Sigge

        • Re: Query last content on using DES (data export service)
          Ryan Rutan

          Sigge,

           

          Apologies for missing this thread.  The DES API is not a fully hydrated payload of content, given it is designed for relaying high-level activity.

           

          Per the,Using the V2 Jive Data Export Service (Analytics)

           

          You need to use the ObjectID and ObjectType fields for the Content to pull the content using the

          Jive REST API v3.14 → Content service

           

          For example, with the response:

              "activity": { 

                        "actor": { 

                          ....

                        }, 

                        "action": "Unlike", 

                        "actionObject": { 

                            "@class": ".ActivityContent", 

                            "objectType": "message", 

                            "objectId": 1137,

          You would use some of the simple IDs (see below):

          public static final int THREAD = 1; 

          public static final int MESSAGE = 2; 

          public static final int USER = 3; 

          public static final int GROUP = 4; 

          public static final int COMMUNITY = 14; 

          public static final int POLL = 18; 

          public static final int QUESTION = 27; 

          public static final int BLOG = 37; 

          public static final int BLOGPOST = 38; 

          public static final int PROJECT = 600;

          public static final int SOCIAL_GROUP = 700;

          to map to the /contents?filter=entityDescriptor(objectType,objectID) ... which will have all the text you need to do your analysis.

           

          Note:  You will need to use HTTP Basic or separate OAuth credentials to call the Jive REST API to get these details, as this is a different service from DES.

           

          Hope that helps.

          1 person found this helpful