__init__.py 418 B

1234567891011121314151617181920212223242526272829
  1. '''
  2. Created on 2018-9-17
  3. @author: xiaoxuan.lp
  4. '''
  5. from dingtalk.api.base import sign
  6. class appinfo(object):
  7. def __init__(self,appkey,secret):
  8. self.appkey = appkey
  9. self.secret = secret
  10. def getDefaultAppInfo():
  11. pass
  12. def setDefaultAppInfo(appkey,secret):
  13. default = appinfo(appkey,secret)
  14. global getDefaultAppInfo
  15. getDefaultAppInfo = lambda: default