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

Cannot call remote JSON from with jQuery #5646

Closed
anonymous-matomo-user opened this issue May 18, 2008 · 1 comment
Closed

Cannot call remote JSON from with jQuery #5646

anonymous-matomo-user opened this issue May 18, 2008 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority.
Milestone

Comments

@anonymous-matomo-user
Copy link

Im trying to integrate remote JSON data in Drupal, but the Piwik API seems to miss something here. It looks like the piwik server needs to help us on cross domain requests (http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/).

Here you can see how this works with Flickr:

http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json

http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=jsonp1210968753581

Are you able to add such a jsoncallback param, too or is it already available, but I cannot find it?

@mattab
Copy link
Member

mattab commented May 24, 2008

good suggestion, implemented.
See documentation on http://dev.piwik.org/trac/wiki/API/Reference

Example: http://piwik.org/demo/index.php?module=API&method=Referers.getKeywords&idSite=1&period=day&date=yesterday&format=JSON&jsoncallback=alert

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority.
Projects
None yet
Development

No branches or pull requests

2 participants