google / google-api-javascript-client

Google APIs Client Library for browser JavaScript, aka gapi.
Apache License 2.0
3.22k stars 1.06k forks source link

v3 reference code for analytics API #14

Open wonderfly opened 9 years ago

wonderfly commented 9 years ago

From prasanna...@gmail.com on February 13, 2012 06:46:37

My JS client application has stopped working due to the new auth changes. I tried to work on v3 documentation for analytics - but could not find any reference on JS client side to call feed data. when do you think it will be done?

Prasanna

Original issue: http://code.google.com/p/google-api-javascript-client/issues/detail?id=12

wonderfly commented 9 years ago

From els...@twist.com on February 21, 2012 10:29:16

https://code.google.com/apis/explorer/#_s=analytics&_v=v3 has a live example with the method names. It's not exactly real documentation, but pretty worthwhile.

wonderfly commented 9 years ago

From obr...@google.com on May 07, 2012 11:29:23

What is the auth issue you are experiencing?

The official analytics documentation can be found here: https://developers.google.com/analytics/devguides/

Status: Clarification

wonderfly commented 9 years ago

From garr...@webvelocity.co.za on June 11, 2012 08:55:03

Hi

I have also just followed the most recent documentation and i cnnot seem to get auth success. Anyone have an answer to this?

wonderfly commented 9 years ago

From obr...@google.com on August 02, 2012 09:48:23

Can you describe the error you are seeing? Is it a failed gapi.auth.authorize call?

Labels: Type-Defect Priority-Medium Milestone-GA

wonderfly commented 9 years ago

From patricba...@gmail.com on November 01, 2012 06:46:55

Personally I followed the hello-analytics-api for javascript tutorial ( https://developers.google.com/analytics/solutions/articles/hello-analytics-api ), and created an ID for a personal web site with analytics running.

The tutorial files (1x .html and 2x .js) are situated on my computer.

On OS X Safari when I try to open the test site the gapi.auth.authorize function fails with the error message : "Failed to load resource: the server responded with a status of 400 (Bad Request)"

With a link to : https://accounts.google.com/o/oauth2/auth?client_id=.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.readonly&immediate=true&redirect_uri=postmessage&origin=file%3A%2F%2F&proxy=oauth2relay308370252&response_type=token&state=218862277&authuser=0 I'm wondering if the problems lies with the origin parameter of the call set to "file://"? How could I fix this?

The same page opened with Chrome creates an error too reported as : "Unable to post message to file://. Recipient has origin null." "(anonymous function)"

set in : " https://oauth.googleusercontent.com/gadgets/js/core:rpc:shindig.random:shindig.sha1.js?c=2 "