MediaPost Social Network

Up.activity.get

Returns the list of activities. The user is determined from the uid parameter.

Parameters

Type Name Required Description
string api_key The application key associated with the calling application.
string community Community system name. Use up.community.getList method to retrieve available communities.
string sig An MD5 hash of the current request and your secret key, as described in the authentication guide.
int uid User ID. Required only with withFriends parameter.
int pageSize Records count per page (10 is default).
int pageNumber Page number (1 is default).
int withFriends Also get activities of user's friends (0 is default).

Example return XML

<?xml version="1.0" encoding="UTF-8"?>
<activity_get_response xmlns="http://platform.converdge.com/" list="true">
        <activity>
                <id>199434
                <created_at>1205798463
                <created_at_gmt>Fri, 13 Jun 2008 12:54:44 +0300
                <type>1</type>
                <viewable>1
                <action_type>1
                <action_text>[Item1] commented on [Item2] profile “what up chicka”</action_text>
                <items>
                        <item name="Item1">
                                <name>...</name>
                                <url>...</url>
                                <image_url>...</image_url>
                        </item>
                        <item name="Item2">
                                <name>...</name>
                                <url>...</url>
                                <image_url>...</image_url>
                        </item>
                </items>
        </activity>
</activity_getRecent_response>

Response

Privacy Note: If no activities are found, the method will return an empty activity_get_response element.

Error codes

Code Description
1 An unknown error occurred. Please resubmit the request.
2 The service is not available at this time.
4 The application has reached the maximum number of requests allowed. More requests are allowed once the time window has completed.
5 The request came from a remote address not allowed by this application.
101 The api key submitted is not associated with any known application.
102 The session key was improperly submitted or has reached its timeout. Direct the user to log in again to obtain another key.
103 The submitted call_id was not greater than the previous call_id for this session.
104 Incorrect signature.