Get social network last activity

Description

Retrieves the last activity for a social network that supports this features.Please check the lastActivity property, from supported social networks endpoint, to detect if this feature is available

HTTP Method

GET

Path

/socialio/{identityId}/{id}/lastActivity

Authentication

Does not require user authentication.

Parameters

Table 46.  Parameters for " Get social network last activity "

NameTypeValue TypeDescription
idPATHlongThe ID of the social network to retrieve the last activity from.
identityIdPATHlongThe identityID or objectId this social networks belongs to

Error Codes

150000 ( Common )

An unhandled exception has occured.

70001 ( SocialIO )

An invalid social network ID was provided.

70009 ( SocialIO )

No access token found for this network

70013 ( SocialIO )

The request failed because token expired or is invalid.

70018 ( SocialIO )

This account does not have access to the object specified.

70020 ( SocialIO )

Unsupported feature for provided social network

Response Schema

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema elementFormDefault="qualified" version="1.0" targetNamespace="http://xsd.poken.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="socialLastActivity">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="activityId" type="xs:string" minOccurs="0"/>
        <xs:element name="userName" type="xs:string" minOccurs="0"/>
        <xs:element name="userId" type="xs:string" minOccurs="0"/>
        <xs:element name="text" type="xs:string" minOccurs="0"/>
        <xs:element name="url" type="xs:string" minOccurs="0"/>
        <xs:element name="title" type="xs:string" minOccurs="0"/>
        <xs:element name="thumbnailUrl" type="xs:string" minOccurs="0"/>
        <xs:element name="timestamp" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Sample Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<socialLastActivity xmlns="http://xsd.poken.com">
  <activityId>205282532382613504</activityId>
  <userName>j_dumm</userName>
  <userId>41373637</userId>
  <text>Uhura is coming!!!</text>
  <timestamp>2012-05-23T12:02:24.000+02:00</timestamp>
</socialLastActivity>