Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

UsersManager.addUser returning NULL response (1 reply)

$
0
0
Good Day,

I just upgraded to 1.12 and my call to UsersManager.addUser is no longer returning a response.

In 1.11 I was getting a JSON response like: {"result": "success", "message": "ok"}. In 1.12 the response is NULL.

The user is being created in the Piwick database fine but all of my tests are breaking because they're expecting a response.

Is this expected? It seems like an odd change to make on purpose.

my code looks like:

Piwik_FrontController::getInstance()->init();
$request = new Piwik_API_Request("
    method=UsersManager.addUser
    &userLogin={$this->getFid()}
    &password=testing
    &email={$this->getFid()}@example.com
    &format=JSON
    &token_auth=xxxxxxxxxx
");
$response = Zend_Json::decode($request->process());

Thanks.

Viewing all articles
Browse latest Browse all 4243