The current spec talks about user IDs: One of the pieces of data that is always returned with a Person object is the user's ID. The user ID must be alphanumeric (A-Za-z0-9) and must uniquely identify the user in a container. This standardization is intended to allow for prefixing IDs with a domain name and separator to create globally unique IDs (e.g. "orkut.com: 34KJDCSKJN2HHF0DW20394"). http://code.google.com/apis/opensocial/docs/spec-0.6.html#people
So yeah, while the number returned from Person.getId() will not be guaranteed to be unique across all containers, you can achieve this by scoping an ID to the container it was obtained from. Hope this helps, ~Arne On Dec 22, 1:54 pm, Dustin Jorge <[EMAIL PROTECTED]> wrote: > I'm curious as to whether the getId() method will return a unique id for > each individual user across all containers or if it will only be > guaranteed unique on a single given container. > > At any rate, it may be a good idea to prepend the container name to any > id used for relational storage. That way you will know it's unique > across all containers. > > -Dustin / iWiddit.com > > hobnobLover wrote: > > Actually, I just needed to add that function to my existing code. I > > wasn't sure it would work, so I thought it would be a good idea to > > first ask. > > > Thanks! > > > - hobnobLover. > >http://www.hobnobLover.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial API Definition" 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-api?hl=en -~----------~----~----~----~------~----~------~--~---
