Exemple #1
0
 def __init__(self):
     logging.info('init base api interface')
     self.corp_id = sys_cfg.get('corp_para','corp_id')
     self.token_url = sys_cfg.get('corp_para', 'token_url')
     logging.info ("corp_id=" + self.corp_id)
     # 不知道用不用----------------------------------
     self.res =''
Exemple #2
0
 def __init__(self):
     BaseAPI.__init__(self)
     logging.info("Init department management API")
     self.create_dep_url = sys_cfg.get('contact_para', 'create_dept_url')
     self.update_dep_url = sys_cfg.get('contact_para', 'update_dept_url')
     self.delete_dep_url = sys_cfg.get('contact_para', 'delete_dept_url')
     self.list_dep_url = sys_cfg.get('contact_para', 'list_dept_url')
     self.dep_secure = sys_cfg.get('contact_para', 'secure')
Exemple #3
0
 def __init__(self):
     BaseAPI.__init__(self)
     logging.info("Init department manage API")
     self.secret_id = sys_cfg.get('contact_para', 'secret_id')
     self.create_deparment_url = sys_cfg.get('contact_para',
                                             'create_department_url')
     self.update_deparment_url = sys_cfg.get('contact_para',
                                             'update_department_url')
     self.my_token = {'access_token': self.get_token(self.secret_id)}
 def __init__(self):
     BaseAPI.__init__(self)
     logging.info("Init department management API")
     # 获得创建部门的URL
     self.create_dep_url = sys_cfg.get('contact_para', 'create_dept_url')
     self.update_dep_url = sys_cfg.get('contact_para', 'update_dept_url')
     self.delete_dep_url = sys_cfg.get('contact_para', 'delete_dept_url')
     self.list_dep_url = sys_cfg.get('contact_para', 'list_dept_url')
     # 获取配置文件的Secret
     self.dep_secure = sys_cfg.get('contact_para', 'secure')
     logging.info('AAAAAAAAAAAAAAAAAAAAAAA' + self.dep_secure)
Exemple #5
0
 def __init__(self):
     BaseAPI.__init__(self)
     logging.info("Init member API")
     self.create_member_url = sys_cfg.get('contact_para',
                                          'create_member_url')
     self.get_member_url = sys_cfg.get('contact_para', 'get_member_url')
     self.update_member_url = sys_cfg.get('contact_para',
                                          'update_member_url')
     self.delete_member_url = sys_cfg.get('contact_para',
                                          'delete_member_url')
     self.dep_secure = sys_cfg.get('contact_para', 'secure')
Exemple #6
0
 def __init__(self):
     logging.info("init base api interface")
     self.cop_id = sys_cfg.get('corp_para', 'cop_id')
     self.token_url = sys_cfg.get('corp_para', 'token_url')
     self.res = ''
Exemple #7
0
 def __init__(self):
     BaseApi.__init__(self)
     logging.info("Init department management API")
     self.create_dep_url = sys_cfg.get('contact_para', 'crate_dep_url')
     self.dep_secure = sys_cfg.get('contact_para', 'secure')
     self.dep_lists_url = sys_cfg.get('contact_para', 'dep_lists_url')
Exemple #8
0
 def __init__(self):
     BaseAPI.__init__(self)
     logging.info("init department management API")
     self.dep_secrets = sys_cfg.get('contact_para', 'secrets')