title: Google Analytics / Realtime: Need Help Setting up a Server-to-Server API
body: <p>I will tell you straight away that I am not very experienced with php, so I kinda need help on this one since the manuals of Google are confusing to me.</p>
  
  <p>What exactly do I need to create a PHP file that can just communicate server-to-server with GA getting the RT data ? I want to create a PHP-API that I can call from elsewhere, but I'm having trouble with setting up the core communication with GA.</p>
  
  <p>What I have done so far: I've followed these instructions to get the library cloning the git.
  (Instructions I used: <a href="https://developers.google.com/api-client-library/php/auth/service-accounts" rel="nofollow">https://developers.google.com/api-client-library/php/auth/service-accounts</a>)
  (Git I cloned: <a href="https://github.com/google/google-api-php-client" rel="nofollow">https://github.com/google/google-api-php-client</a>)</p>
  
  <p>What should I do next ? Any Advices or examples from where I could copy and adjust it ? I am sorry for asking such a newbie question.</p>