I am trying to get the server application to regularly retrieve Google Analytics data from my own GA account. Please note that this is a personal server-side application using my own data, i.e. There is no end user access to this application.
Thus, I registered my application in the Google API Console as an Application Service , which gave me the Client ID and Private Key . I understand that service applications do not use Application Secret and the redirect URL , since there is no end user between the server in this authentication flow. Indeed, the Google API console did not provide me with any secret data and did not ask me for a redirect URL.
Unfortunately, I cannot figure out how to authenticate my application-app in the Google PHP API . There is extensive documentation on authenticating web applications with the end user.
In the Google documentation, you can authenticate server-server by signing a JWT request with a private key . I just can't figure out how to do this in the PHP API (although I was looking at the source and there is definitely a script that signs the request using the private key.)
Am I missing something? How do I authenticate for a service application using my private key and the Google PHP API?
Edited for clarity.
moon prism power Mar 25 '12 at 20:00 2012-03-25 20:00
source share