Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Google Analytics using Java  RSS feed

 
Ranch Hand
Posts: 1116
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi everybody,

what way could I retrieve data from Google Analytics using Java?

Many Thanks,
 
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Report post to moderator
Angus, it's bad form to post a follow-up question without replying to Steve's response on this earlier thread.

To repeat Steve's response, equally applicable here:

Steve Luke wrote:The first question would be to see if it is legal. Check out the Google terms and conditions and see if you are allowed to use their system this way. And in your research you might also look to see if they have an API you can use to interface with their application - making your work a whole lot easier.


 
  • Mark post as helpful
  • send pies
  • Report post to moderator
Google has released apis for many languages to retreive and/or modify data from Google Analytics, including Java. One good way to start is by using the Core Rreporting api. See here for more information:
https://developers.google.com/analytics/devguides/reporting/core/v3/
 
Isaac Ferguson
Ranch Hand
Posts: 1116
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi everybody,

the case is:

I access well:

oauthHelper.getUnauthorizedRequestToken(oauthParameters);

String accessToken = oauthParameters.getOAuthToken();

Then here the user authorize, in order to access their data.

oauthHelper.getRequestTokenUrl(), here I would have to retrieve the parameter from the browser? Sorry I am a little confuse.

Any tip, please?

Many Thanks,





 
Author and ninkuma
Marshal
Posts: 66797
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
I think it'd be best to continue any discussion in the other topic.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!