12345678910 |
- from common import config
- from common.util import req_api
- class LoginApi:
- def __init__(self):
- pass
- def login(self):
- return req_api(f'{config.DCIM_BASE_URL}/rest/openapi/sm/session', data={'userid': config.USERNAME, 'value': config.PASSWORD})
|