0

A question about security, using Google Data API to access the Google Analytics data. I'm going to use this code on my site:

AnalyticsService asv = new AnalyticsService("");
asv.setUserCredentials(CLIENT_USERNAME, CLIENT_PASS);

Is it secure? Will username and password be send by plain text? Sorry for my bad english.

unfalse
  • 301
  • 2
  • 9

2 Answers2

1

If you access Google Data API through https, your credentials will not be sent as plain text.

You can see Google's example here, check line 87 where the URL is defined:

https://code.google.com/p/ga-api-java-samples/source/browse/trunk/src/v2/DataFeedExample.java

santisamra
  • 11
  • 2
0

Here is the link to my c# code for v3 of the api as part of that post answers Automated use of google-api-dotnet-client with OAuth 2.0

Community
  • 1
  • 1