1 Reply Latest reply on Aug 14, 2018 1:20 AM by gopi.gorantala

    REST API Get call to find "Last Activity" field

    biju.mohan

      Hi,

       

      Is there a way to make a REST API Get call to find "Last Activity" field which appers on User properties/profile? 

       

      Thanks
      Biju

        • Re: REST API Get call to find "Last Activity" field
          gopi.gorantala

          REST API is very helpful,  if you want to achieve something with REST then this helps you..

           

          Ref - Jive REST API v3.14 → Person service

           

          ${domainUrl}/api/core/v3/people/${personID}/activities  - gives you all the activities

          ${domainUrl}/api/core/v3/people/${personID}/activities?fields=after

          ${domainUrl}/api/core/v3/people/${personID}/activities?fields=before

          I have copied the table for ease understanding.. Based on your requirement..

           

          NameTypeRequiredDescription
          afterStringfalseDate and time representing the minimum "last activity in a collection" timestamp for selecting activities (cannot specify both after and before)
          beforeStringfalseDate and time representing the maximum "last activity in a collection" timestamp for selecting activities (cannot specify both after and before)
          countIntegerfalseMaximum number of activities to return in this request (you may get more activities than this in order to get all of the activities in the last collection)
          filterObject[]falseFilter expression(s) used to select matching results
          fieldsStringfalseFields to be included in the returned activities
          collapseBooleanfalseWhether collapse the results such that there is only one entry per jive object
          oldestUnreadBooleanfalseEffective only when "collapse" is true. When this flag is set to true, service includes oldest unread item in collapsed list