I am using Flurry for analytics inside my native app and it records just perfectly, but... Now I want to make an backend admin page to my app and want to view the stats on my page. I have no problem getting one API request into my page, but when trying to ask a second nothing happens? Here is how I try to accomplish this:
// Daily activity users //
$djsondata = file_get_contents("http://api.flurry.com/appMetrics/ActiveUsers?apiAccessCode=".$flurryAccessCode."&apiKey=".$flurryIOSKey."&startDate=".$startDate."&endDate=".$nowDate."");
$dailyArray = json_decode($djsondata, true);
$day = $dailyArray['day'];
echo '<pre>1: ';
print_r($dailyArray);
echo '</pre>';
// Weekly activity users //
$wjsondata = file_get_contents("http://api.flurry.com/appMetrics/ActiveUsersByWeek?apiAccessCode=".$flurryAccessCode."&apiKey=".$flurryIOSKey."&startDate=".$ystartDate."&endDate=".$nowDate."");
$weeklyArray = json_decode($wjsondata, true);
$week = $weeklyArray['day'];
echo '<pre>2: ';
print_r($weeklyArray);
echo '</pre>';
If I comment out the first API call I get data in the second?!? Am I missing something here or is it only possible to ask the API once?
Any help is appreciated and thanks in advance :-)