The user ID you need to pass into the REST API must be your OpenSocial
UID, not the orkut user ID.
The script above returns to you the orkut ID. To get the OpenSocial
UID you can use the following script:

function response(data) {
  var id;
  if (data.hadError()) {
    alert("Error: " + data.get("req").getErrorMessage());
  } else {
    id = data.get("req").getData().getId();
  }
};

function request() {
  var req = opensocial.newDataRequest();
  req.add(req.newFetchPersonRequest
(opensocial.DataRequest.PersonId.VIEWER), "req");
  req.send(response);
};
request();
--~--~---------~--~----~------------~-------~--~----~
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