Hello,
i recognized that it isn’t possible anymore to display widgets using token_auth.
My idea is now to fetch the data using a cronjob and the API to put the data into the documentroot of my homepage.
The original Flash object looks like this:
<object
style="visibility: visible;"
id="VisitsSummarygetEvolutionGraphChart_swf"
data="http://mydomain.de/libs/open-flash-chart/open-flash-chart.swf?piwik=0.8"
bgcolor="#FFFFFF"
type="application/x-shockwave-flash"
height="150"
width="100%">
<param value="always" name="allowScriptAccess">
<param value="transparent" name="wmode">
<param value="data-file=http%3A//mydomain.de/index.php%3Fmodule%3DVisitsSummary%26action%3DgetEvolutionGraph%26columns%5B%5D%3Dnb_visits%26idSite%3D1%26period%3Dweek%26date%3D2010-01-11%2C2010-08-08%26viewDataTable%3DgenerateDataChartEvolution&id=VisitsSummarygetEvolutionGraphChart_swf&loading=Laden..." name="flashvars">
</object>
Now i get the data via cronjob and put it into the documentroot of my homepage:
wget -O test.dat "http://mydomain.de/index.php?module=API&method=VisitsSummary.get&format=JSON&idSite=1&period=week&date=2010-01-11,2010-08-08&token_auth={mytoken}&filter_limit=100"
Now i tried to edit the original flash object in the following way:
<object
style="visibility: visible;"
id="VisitsSummarygetEvolutionGraphChart_swf"
data="http://mydomain.de/libs/open-flash-chart/open-flash-chart.swf?piwik=0.8"
bgcolor="#FFFFFF"
type="application/x-shockwave-flash"
height="150"
width="100%">
<param value="always" name="allowScriptAccess">
<param value="transparent" name="wmode">
<param value="data-file=http%3A//mydomain.de/test.dat" name="flashvars">
</object>
But it’s not working, no error, but also no data displayed, just the “Loading…” animation.