Try

user.setProperty('anything', 'goeshere');
 On Jan 19, 2012 1:15 AM, "utan" <[email protected]> wrote:

> Hi guys,
>
> I have a command where I want to set or add new properties to a
> specific user, I send the user pubid when I run the command, Ape.log
> correctly logs the pubid , and also the user object is created.. but
> when I want to set properties to the user, i get as response a bad
> CMD..
> comment the line where I use the setPropertie function is fine...
> The wiki specifies that the second var in the callback function should
> have the user object, I can only get the user ip but not other info
> like username ..
>
> Am I trying to set correctly new user properties, can anybody tell
> where my error is?
>
> Ape.registerCmd('userEmo', true, function(params, info) {
>                   var user = Ape.getUserByPubid(params.userpubid);
>                                //Ape.log(user);
>                               //Ape.log(params.userpubid);
>                       user.setProperty('anything':'goeshere');
> });
>
> Ape is awesome and I am happy to learn much more.. thank you for been
> so kind with me..
>
> regards UTAN
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" 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/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" 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/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to