From 72a822bd1e725b3bab40632b2aec2023375afd02 Mon Sep 17 00:00:00 2001 From: dmpe Date: Wed, 12 Dec 2018 23:23:05 +0000 Subject: [PATCH] still the same stuff of loading ga python class #18 --- userMng/third_party_services/google_analytics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userMng/third_party_services/google_analytics.py b/userMng/third_party_services/google_analytics.py index dbb8784cf..dbe29d88e 100644 --- a/userMng/third_party_services/google_analytics.py +++ b/userMng/third_party_services/google_analytics.py @@ -24,7 +24,7 @@ def initialize_analyticsreporting(self): fl = os.path.abspath(os.path.join(os.path.dirname(__file__),KEY_FILE_LOCATION)) print(fl) - credentials = ServiceAccountCredentials.from_json_keyfile_name(self.KEY_FILE_LOCATION, self.SCOPES) + credentials = ServiceAccountCredentials.from_json_keyfile_name(fl, self.SCOPES) # Build the service object. analytics = build('analyticsreporting', 'v4', credentials=credentials)