PHP Google Analytics API - Simple example

前端 未结 3 773
既然无缘
既然无缘 2021-02-04 16:49

I am trying to set some basic example of using Google Analytics with this library: https://github.com/google/google-api-php-client

For starter I have:

3条回答
  •  无人及你
    2021-02-04 17:15

    You will need to do a http get to get the information from the url.

    http://www.php.net/manual/en/function.http-get.php

    Remember you will still need to add the Oauth2 auth code to the string before you can send that request. This link might help if you dont have auth code already. https://developers.google.com/analytics/solutions/articles/hello-analytics-api#authorize_access

提交回复
热议问题