Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gapi account data url goes to 404

Does anyone know the new account data url used by the GAPI 1.3.1 class? The current one is

https://www.google.com/analytics/feeds/accounts/default but it goes to a 404

Regards,

like image 808
maximus 69 Avatar asked Dec 12 '22 23:12

maximus 69


1 Answers

  • Go to : https: // code.google.com /apis/console/
  • Login and create a new project
  • Turn on Analytics API
  • Click on Analytics API link and then in the left menu choose API Access
  • Note down the API Key (Key for browser apps )

Then inside your code, where you had: https: // www.google.com/ analytics/feeds/accounts/default will be replaced with: https:// www. googleapis.com/ analytics /v2.4/management/accounts

There is one more change to do. Each call for info will have to also include the API Key as a GET param named key

Example: https://www.googleapis.com/analytics/v2.4/management/accounts?start-index=1&max-results=100&key=API_KEY

I am sorry, I am new here and I can't paste links yet. Hope to get better :)

like image 58
DDinescu Avatar answered Dec 28 '22 07:12

DDinescu