Example #1
0
 def __init__(self):
     BaseAPI.__init__(self)
     logging.info("init member managment API")
     self.create_member_url = sys_config.get('contact_para', 'create_member_url')
     self.dep_secret = sys_config.get('contact_para', 'secret')
     self.get_member_url = sys_config.get("contact_para", "get_member_url")
     self.update_member_url = sys_config.get("contact_para", "update_member_url")
Example #2
0
 def __init__(self):
     BaseAPI.__init__(self)
     logging.info("init department managment API")
     self.create_dept_url = sys_config.get('contact_para', 'create_dep_url')
     self.dep_secret = sys_config.get('contact_para', 'secret')
     self.update_dept_url = sys_config.get('contact_para', 'update_dep_url')
     self.del_dept_url = sys_config.get('contact_para', 'del_dep_url')
     self.get_depList_url = sys_config.get('contact_para', 'list_dep_url')
Example #3
0
 def __init__(self):
     logging.info("init base api interface")
     self.corp_id = sys_config.get('corp_para', 'corp_id')
     self.token_url = sys_config.get('corp_para', 'token_url')
     self.res = ''