Hi Stig, Thanks for releasing this code. Saved me loads of time and from writing disgusting CURL routines!
I am using it for a basic visits vs unique graph built with the flot plugin for jQuery to be used on the CMS dashboard. By the way do you know how often or when google update the stats? Would like to cache them to speed up the response time. Was thinking an update once a day should suffice - maybe around midnight to catch the full days traffic. Thanks again, Simon -original message- Subject: [phpug] Google Analytics PHP Interface - GAPI From: Stig Manning <[email protected]> Date: 26.05.2009 02:55 Hi PHPUG, A while ago I mentioned that I was developing an open-source Google Analytics PHP Interface, following the opening the 'Google Analytics Data Export API'. Google has given us all access to all that awesome GA data. The GAPI class is now out of beta, yay! and has the following features: * CURL and fopen HTTP request methods, with autodetection. Works on more servers! * Full XML to PHP object mapping - deal with the data returned in a nice object-oriented way. * Magic 'get' methods for all of the parameters, metrics and dimensions * Process account data and report data See the project at: http://code.google.com/p/gapi-google-analytics-php-interface/ It would be great to get other people on board using the class in your project and assisting with documentation and development. I am using the class in a number of projects currently (including a CMS with analytics reports built in) and it is great to work with, especially if you are used to Doctrine / Prototype ORMs. Cheers, Stig -- Stig Manning http://www.sdm.co.nz --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
