on 02-17-2011 11:05 PM
Hi,
I'm trying to use osapi.people.get request and receive the following error:
"osapi.people.get is not a function stack"
osapi.people.get does not work right now (although listed in the [supported APIs section of the documentation|https://streamwork.com/api/opensocial/Supported_OpenSocial_Apis.html]. osapi.people.getViewer works (and returns the users currently viewing the activity) - I didn't try the other functions yet...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yuval,
actually that depends on what you mean with "Friends". Do you mean the list of participants of the current activity? This feature is in the pipeline and planned for one of the next releases. At the moment, you can only use getViewer() to get the ID of the current user, unfortunately. As a workaround, consider storing all getViewer() ids using a certain key to collect the IDs of all users.
You should also consider creating an idea in our [UserVoice|http://feedback.streamwork.com/forums/11095-sap-streamwork] forum and vote it up. This way, other people can show their support too and you can keep track of your idea's status.
Cheers
Simon
Hi Simon,
when this feature is implemented: What will be the semantics? Is there any possibility for a Gadget to get the list of people in the whole activity?
Do you plan to map the open social specification to StreamWork concepts, because it seems to be not straight forward...
Thanks.
Regards,
Joern
Hi Joern,
the osapi.people interface is in the backlog and planned for the next release, but please don't nail me on a fixed release date. The plan is that osapi.people.getOwner will give you the creator of the gadget, while osapi.people.getOwnerFriends provides you the list of participants of the activity. As a workaround, maybe you could try storing the current viewer ID in a set each time a user has opened the activity containing the gadget.
HTH
Simon
Hi Sreekanth,
The people interface is available now: https://streamwork.com/api/opensocial/osapi_people.html.
Regards,
Rüdiger
I figured out the issue here I believe.
It was an issue with the ModulePrefs block in my xml descriptor.
ModulePrefs needs to contain the Require nodes which originally mine did not. I had closed it due to a non-helpful example I found.
Here's what worked for me:
<ModulePrefs title=".........>
<Require feature="dynamic-height" />
<Require feature="settitle" />
<Require feature="osapi" />
</ModulePrefs>
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.