Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate url in API.getBulkRequest response #7330

Closed
filipesaraiva opened this issue Mar 2, 2015 · 2 comments
Closed

Duplicate url in API.getBulkRequest response #7330

filipesaraiva opened this issue Mar 2, 2015 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@filipesaraiva
Copy link

Hello, first thanks for piwik.

I am trying to get data from two different urls, but the response sent is just for the last url, duplicated. See:

http://piwik.colivre.coop.br/piwik/index.php?module=API&method=API.getBulkRequest&format=xml&idSite=6&period=range&date=2015-01-01,today&urls[0]=method=Actions.getPageUrl&pageUrl=http://wsl.softwarelivre.org/2013/0004/&urls[1]=method=Actions.getPageUrl&pageUrl=http://wsl.softwarelivre.org/2013/0004/download/

Maybe is it a bug in my piwik version or my code is wrong?

@filipesaraiva filipesaraiva changed the title Duplicate url in API.getBulkRequest Duplicate url in API.getBulkRequest response Mar 2, 2015
@mattab
Copy link
Member

mattab commented Mar 2, 2015

Hi @filipesaraiva

you need to URL encode each URL query parameter urls[0] etc.

it looks like this:

http://demo.piwik.org/?module=API&method=API.getBulkRequest&&idSite=7&format=xml&period=range&date=2015-01-01,today&urls%5B0%5D=method%3DActions.getPageUrl%26pageUrl%3Dhttp%3A%2F%2Fforum.piwik.org%2F&urls%5B1%5D=method%3DActions.getPageUrl%26pageUrl%3Dhttp%3A%2F%2Fforum.piwik.org%2Fread.php%3F2%2C829

@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Mar 2, 2015
@mattab mattab closed this as completed Mar 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants