cancel
Showing results for 
Search instead for 
Did you mean: 

Gadget: osapi.people.get error

Former Member
0 Kudos

Hi,

I'm trying to use osapi.people.get request and receive the following error:

"osapi.people.get is not a function stack"

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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...

Former Member
0 Kudos

Thanks,

I need a way to get the viewer friends .....

0 Kudos

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

Former Member
0 Kudos

Hi,

each opensocial container is implemented in a different way ... osapi.people.get needs to return a list

of people that has some kind of connection with the current viewer ....

0 Kudos

Hi Yuval,

osapi.people.get is currently not supported by SAP StreamWork's OpenSocial implementation.

HTH

Simon

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

Hi ,

Is osapi.people interface implemented by StreamWork ? How do i get hold of user information and the itemUuid which you can easily get using methods API?

Regards

Sreekanth

RuedigerMueller
Advisor
Advisor
0 Kudos

Hi Sreekanth,

The people interface is available now: https://streamwork.com/api/opensocial/osapi_people.html.

Regards,

Rüdiger

0 Kudos

I have used the same sample mentioned in the help page. I get osapi.people as undefined . Any clues why ?

Regards

Sreekanth

RuedigerMueller
Advisor
Advisor
0 Kudos

Which system are you using? I checked in staging and there osapi.people is defined. I cannot test in sandbox, as I am currentl unable to register a gadget in sandbox.

Regarding the item ID: I don't know how to get it.

0 Kudos

I am using sandbox system.

mark_doberenz
Advisor
Advisor
0 Kudos

I am using the sandbox and osapi.people is undefined for me also. I've included the following line in the XML descriptor:

<Require feature="osapi" />

but it didn't seem to help.

mark_doberenz
Advisor
Advisor
0 Kudos

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>