Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- API = {
- 'apply': BASE_URL+'/api/v1/system/apply',
- 'login': BASE_URL+'/api/v1/system/login',
- 'service_ssh': BASE_URL+'/api/v1/service/ssh',
- }
- def apply():
- response = requests.post(API['apply'], headers=headers, verify=False)
- result = json.loads(response.content.decode('utf-8'))
- if result['data']['sucess']:
- return result['data']['config_hash']
- return False
Add Comment
Please, Sign In to add comment