WhatPulse Forums
[SOLVED] Web API issue - Printable Version

+- WhatPulse Forums (http://whatpulse.org/forums)
+-- Forum: Support (/forumdisplay.php?fid=38)
+--- Forum: Website (/forumdisplay.php?fid=60)
+--- Thread: [SOLVED] Web API issue (/showthread.php?tid=5772)



[SOLVED] Web API issue - sim642 - 12-06-2014 03:20 PM

I am using the Web API to look up stats and I found out that there is a problem with its returned data, more specifically when using the formatted=yes flag with teams.

http://api.whatpulse.org/team.php?team=awfulnet&format=json returns the correct key and click counts

http://api.whatpulse.org/team.php?team=awfulnet&format=json&formatted=yes returns some obviously wrong ones


RE: Web API issue - smitmartijn - 12-06-2014 03:38 PM

Not sure what you're seeing or mean with 'obviously wrong ones', but they look fine here:

"Keys":46162702,"Clicks":10118324
"Keys":"46,162,702","Clicks":"10,118,324"

Keep in mind that stats are cached for an hour on different servers, so there is a chance that the api results vary a bit when refreshing.


RE: Web API issue - sim642 - 12-06-2014 04:30 PM

They appear correct now but about an hour ago keys was "1,729" and clicks was "1,426". Which is too far off to be a caching problem.