[Piwik-trac] [Piwik] #89: Create API in several languages to embed piwik widgets in other websites

Piwik trac at piwik.org
Tue Jul 1 00:34:26 CEST 2008


#89: Create API in several languages to embed piwik widgets in other websites
--------------------------+-------------------------------------------------
  Reporter:  julien       |       Owner:                 
      Type:  New feature  |      Status:  new            
  Priority:  normal       |   Milestone:  Future features
 Component:  Core         |     Version:                 
Resolution:               |    Keywords:  php api        
--------------------------+-------------------------------------------------
Old description:

> We need to create a user friendly API that will generate the javascript
> code to fetch widget from piwik.
> For instance : <script type="text/javascript" src="http://localhost
> /piwik-
> src/?module=Widgetize&action=js&moduleToWidgetize=Home&actionToWidgetize=getPlugin&idSite=1&period=day&date=yesterday</script>
> Could be rewritten in php like that: getWidget(array("module"=>"Home",
> "action"=>"getPlugin", ...));

New description:

 We need to create a user friendly API that will generate the javascript
 code to fetch widget from piwik.

 For instance : <script type="text/javascript" src="http://localhost/piwik-
 src/?module=Widgetize&action=js&moduleToWidgetize=Home&actionToWidgetize=getPlugin&idSite=1&period=day&date=yesterday</script>

 Could be rewritten in php like that:

 getWidget(array("module"=>"Home", "action"=>"getPlugin", ...));

-- 
Ticket URL: <http://dev.piwik.org/trac/ticket/89#comment:2>
Piwik <http://piwik.org>
Piwik, open source web analytics software


More information about the Piwik-trac mailing list