getUserData
- Home
- Activity Feed
- SvcNewsfeed
- getUserData
getUserData
Gets user’s newsfeed. (Data about the user’s friends)
Parameters
Name | Description |
nodeID optional | The primary identifier for your network. |
userID optional | The user ID of the user whose info is being retrieved. |
count optional | The number of activites to fetch. |
page optional | The number of the page to load. Cannot exceed 3. |
viewAsUser optional | The userID of the user viewing the feed. |
blended optional | Whether or not the feed should be blended. |
groupTime optional | The number of seconds to use when grouping activity together. 0 = no grouping, ‘all’ = group all. |
contentType optional | The name of the content type that is to be returned. Use comma seperated values for multiple. |
maxContent optional | The max number of content pieces to return per activity. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcNewsfeed?action=getUserData&userID=229928503&minNum=2&count=2&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
{ "service":"svcNewsfeed", "action":"getUserData", "item":{ "lastPage":true, "show_content_push":true, "uniqueId":"af1", "activities":[ ] }, "code":100, "message":"Feed successfully loaded." } |
Service Information
Service | svcNewsfeed |
Method | getUserData |
Type | REST |
Response Types | JSON, XML |