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}
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}