Exemple #1
0
 def get(self):
     args = parser.parse_args()
     service = IntercomService(config.get("intercom_app_id"),
                               config.get("intercom_app_api_key"))
     growth_rate = service.growth_rate(args["startDate"], args["endDate"])
     return {'data': growth_rate}
Exemple #2
0
 def get(self):
     args = parser.parse_args()
     service = IntercomService(config.get("intercom_app_id"), config.get("intercom_app_api_key"))
     growth_rate = service.growth_rate(args["startDate"], args["endDate"])
     return {'data': growth_rate}
Exemple #3
0
 def get(self):
     args = parser.parse_args()
     service = IntercomService(config.get("intercom_app_id"),
                               config.get("intercom_app_api_key"))
     resp = service.total_users(args["startDate"], args["endDate"])
     return {'data': resp}
Exemple #4
0
 def get(self):
     args = parser.parse_args()
     service = IntercomService(config.get("intercom_app_id"), config.get("intercom_app_api_key"))
     resp = service.total_users(args["startDate"], args["endDate"])
     return {'data': resp}