-
Notifications
You must be signed in to change notification settings - Fork 1
Users
Steren edited this page Aug 9, 2011
·
3 revisions
followers(String userName)
- Get a list of the followers of the given user
response:["userName1", ...]
-
- Parameters:
-
userName
- unique userName of the user
friends(String userName)
- Get a list of users who are followed by the given user
response:["userName1", ...]
-
- Parameters:
-
userName
- unique userName of the user
insights(String userName, Integer from, Integer number, Integer category, String actions)
- Get a list of the insights a given user interacted with.
response:[{id, content, creationDate, endDate, creator, category, agreeCount, disagreeCount, commentCount, lastCurrentUserVote}, ...]
-
- Parameters:
-
userName
- unique userName of the user -
from
- index of the first insight to return, default = 0 -
number
- number of insights to return, default = 20 -
category
- id of the category to restrict to, default = null -
actions
- insights voted or created by the given user. ["voted", "created"] (String), default = "voted"
me()
- Get profile information about the currently connected user
response: same as "profile" action -
profile(String userName)
- Get profile information about the given User
response:{userName, description, avatarSmall, avatarMedium, avatarLarge, successfulPredictionsCount}
-
- Parameters:
-
userName
- unique userName of the user