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

add site on piwik by api (no replies)

$
0
0
I'm using the zend library service piwik to integrate my platform with
piwik.

This is the code for the call to piwik:


$piwik = new Zend_Service_Piwik();
$piwik->setAuthToken('anonymous')
->setIdSite(2)
->setHost('http://stats.dev.loc/piwik/');
$response = $piwik->SitesManager()->queryApi("SitesManager.addSite", $params);


It gives me this error:

*Message:* One mandatory setting (tokenAuth, idSite, Host or Method) is
empty.

could help me solve it?

Thank you very much.

Viewing all articles
Browse latest Browse all 4243

Trending Articles