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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Google Analytics using Java

 
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi everybody,

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

Many Thanks,
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,





 
Sheriff
Posts: 67682
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I think it'd be best to continue any discussion in the other topic.
 
Skool. Stay in. Smartness. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic