Activity resource

Get activity

OVERVIEW

Method to get an individual activity.

At this time we only support the microblog activity items.

Request

GET:      /api/1/activities/{activityid}

Parameters
 

Parameter Name

Value

Description

activityid

Int

The activity ID for the microblog

 

Response

An individual activity item is returned.

<activity>

               <activitydesc></activitydesc>

              <timepublished>UTC date</timepublished>

             <actors>

               <actor>

                         <username></username>

                         <email>Email address</email>

                         <avatar></avatar>

                         <userlink></userlink>  ( link to the users API profile link)

               </actor>

                </actors>

              <sitename></sitename>

             <noofcomments></noofcomments>

            <nooflikes></nooflikes>

            <contentitem>

                        <id></id>

                        <title></title>

                       <link>{this is the website link and not the API endpoint link}</link>

                        <apilink></apilink> {ALL api endpoints have not yet been developed, so we will only provide the API link if it is available , e.g file link or micro blog}

                       <type>{Content type}</type>

                        <imagelink>{image for the content type}</imagelink> 

                       <author>

                                    <username></username>

                                    <email>Email Address</email>

                                    <avatar></avatar>

                                    <userlink></userlink>  ( link to the users profile )

                      </author>

                     <datepublished></datepublished>

                     <parentcontent> {In case of file, what is the parent content to which the content item belongs too}

                                    <title></title>

                                     <link>{URL to the website content item, this is not the API link}</link> 

                                     <apilink></apilink> {ALL api endpoints have not yet been developed, so we will only provide the API link if it is available , e.g file link or micro blog}

                     </parentcontent>

            <contentitem>

            <comments>

              <comment>

                                   <text></text>

                                    

                                   <author>

                                                  <username></username>

                                                 <email>Email Address</email>

                                                  <avatar></avatar>

                                                 <userlink></userlink>  ( link to the users profile )

                                    </author>

                                    <datepublished></datepublished>

                                     <nooflikes></nooflikes>

                                   <images>

                                                  <image>

                                                              <caption></caption>

                                                              <imagelink> </imagelink>

                                                </image>

                                  <images>

             </comment>

            </comments>

            <images>

                           <image>

                                         <caption></caption>

                                         <imagelink> </imagelink>

                          </image>

           </images>

</activity>

Comments


0 Comments

Last Updated: Jun 09,2023