Multiple urls in addSite API call


(Jatin Mehta) #1

I am using following API call: SitesManager.addSite

I want to add multiple URLs to urls, so I can I form the request?

Help me create get request


http://mywebsite.com/piwik/index.php?module=API&method=SitesManager.addSite&siteName=temp1&urls=http://temp1.com/&urls=http://temp2.com/&format=PHP&prettyDisplay=true&token_auth=1234567890123456789

I know it’s wrong, but which is the correct format?


(Matthieu Aubry) #2

See the doc on how to pass array to the API http://piwik.org/docs/analytics-api/reference/#toc-passing-an-array-of-data-as-a-parameter


(Jatin Mehta) #3

Thanks Matt