how get client name

75 views
Skip to first unread message

maxi

unread,
Sep 3, 2011, 7:18:41 AM9/3/11
to nowjs
I need to associate 'now.name' and 'user.clientId' of a group.


everyone.getUsers(function (users) {
for (var i = 0; i < users.length; i++) console.log(users[i]);
});

This example retrieve only 'user.clientId' and not 'now.name'

any suggestion?

thanks

Maxi

Eric Zhang

unread,
Sep 3, 2011, 4:27:43 PM9/3/11
to no...@googlegroups.com
Hi Maxi,

Check out the nowjs.getClient API:

nowjs.getClient( userId, function() {
  // this.now.name is available
});



Eric

maxi

unread,
Sep 4, 2011, 1:43:42 PM9/4/11
to nowjs
thanks Eric !!!

Nowjs is fantastic :-)
Reply all
Reply to author
Forward
0 new messages