Tutorials »

I'm working with Google Analytics at the moment, to pull information about web traffic from analytics into another system. Google have excellent APIs and that makes this job much easier. I'm using pecl_oauth to authenticate users against their google accounts (see my post about using OAuth from PHP), but even after I have a valid google user, working out which analytics accounts they have access to and how to refer to them is a puzzle in itself, so I thought I'd share what I learned.These examples use pecl_http, since I have control of my platform and I find it easy to work with.
Posted by girish.r 937 days ago (http://www.lornajane.net)
Discuss  | Bury | Tweet This | Tagged: analytics api google pecl_http pecl_oauth php webservice
Add To 

Who Voted for this Story

Comments

No one has commented on this article yet.

Log in to comment or register here.