Help using API to create users

Hi all.
I know this question is common, and I promise you I’ve read all topics style_emoticons/<#EMO_DIR#>/smile.gif

I need to use the addUser method but, even using the token_auth given in the API page and the token_auth returned using the getTokenAuth method, I only get a “You can’t access this resource as it requires a ‘superuser’ access.” error.

Can anyone help me?

Thanks in advance.

Hi,

You want to use addUser method out of Piwik ? Because if you stay in your superuser’s API, you can access to the settings after you authenticate…

[quote=Gus @ Apr 22 2010, 07:23 AM]Hi,

You want to use addUser method out of Piwik ? Because if you stay in your superuser’s API, you can access to the settings after you authenticate…[/quote]

Hi!
First sorry for the delay reading your answer, I thought that I would have received any email when someone answererd me.

I’m coding a PHP web application to register users in my Piwik, so yes, I need to call the addUser method out of Piwik.

Anyway, I’m trying in a few moments 0.6 version…

Thanks anyway!

you should login Piwik as super user, then fetch this token_auth (ie. the super user token_auth).