Target specific participant in Google Hangout API? -
I'm trying to create a Google Hangout app as a game, but I'm sure with the current Google Hangout API So for targeting a specific user, for example, if I want to be a special partner to be the only person who can see a device in the app, then how can I limit the basis of a specific user id?
You can use the gapi.hangout.getParticipantById (gapi.hangout.getParticipantId ()) Participants can be received (see for more information).
The Google ID is stored in the participant object in the person.id field (see for details about the participant object).
So once you have an attendee for the current user, then check the person.id field to see if it matches the person in question. There are other fields that may be more suitable for your exact requirements, however, I encourage you to see and experiment different areas and methods.
Comments
Post a Comment