Java API for Google Analytics -
i've found great example here: https://developers.google.com/analytics/solutions/articles/data_over_time uses google.gdata, not google.api. credentials asking following:
private static final string username = "username"; private static final string password = "password"; private static final string table_id = "table_id";
whereas in google.api, credentials needed following:
private static final string key_file_location = "yourfile.p12"; private static final string service_account_email = "something@developer.gserviceaccount.com";
these 2 libraries (google.api , google.gdata) seem able similar things in fact different. meant username, password , table_id in first scenario? recommended java api google analytics?
it recommended use google analytics java client libraries. example have pointed uses deprecated client login.
you should use updated hello analytics api tutorial better example of using java api google analytics.
Comments
Post a Comment