Hey,
here is how I'm doing it:
var stream = data.get('activities').getData()
['requestedStream'] ;
if(stream)
this.applicationId =
stream.getField(opensocial.Stream.Field.APP_ID);
On Dec 4, 5:20 am, 321blastoff <[EMAIL PROTECTED]> wrote:
> Hi, I'm trying to retrieve the app_id for my gadget, but it's not
> working right. When I run the following, the app_id lines both return
> "undefined". (The title and url seem to be OK.) Is there a different
> way to get the app_id?
>
> var viewerActivities = dataResponse.get('viewerActivities').getData()
> ['activities'];
> console.log(viewerActivities);
> viewerActivities.each(function(activity) {
> console.log('title: ' + activity.getField('title'));
> console.log('url: ' + activity.getField('url'));
> console.log('app_id: ' + activity.getField('app_id'));
> console.log('static app_id: ' +
> activity.getField(opensocial.Stream.Field.APP_ID));
> });
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Orkut Discussion" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---