Hi Amith,
Though you cannot download content from the Orkut pages, per se, you
can use the OpenSocial APIs to get your profile information. For
example you can get the user's BOOKS and favorite TV shows data as
follows:

function request() {
  var request = opensocial.newDataRequest();
  var options = {};
  options[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]
= [opensocial.Person.Field.BOOKS, opensocial.Person.Field.TV_SHOWS];

  request.add(request.newFetchPersonRequest
(opensocial.IdSpec.PersonId.VIEWER, options), 'viewer');

  request.send(response);
}

function reponse(data) {
  var viewer = data.get('viewer').getData();
  var outputString = viewer.getDisplayName();

  outputString = outputString + " : " + viewer.getField
(opensocial.Person.Field.BOOKS);
  outputString = outputString + " : " + viewer.getField
(opensocial.Person.Field.TV_SHOWS);

  output(outputString);
}


PS: You can run this code by pasting it into the OSDE (http://
osda.appspot.com/)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to