import requests
import json
from time import sleep
session = requests.Session()
data = {
"email": "email",
"password": "pass"
}
data = json.dumps(data)
auth = session.post(url='https://135.181.30.176/vm/v3/public/auth', data=data, verify=False)
print(session.cookies.get_dict())
print(auth.json())
disk = session.get(url='https://135.181.30.176/vm/v3/disk', verify=False)
print(disk.json())
Ответ от auth:
{'confirmed': True, 'id': '3942', 'session': 'session', 'token': 'token'}
Ответ от disk:
{'error': {'code': 3001, 'msg': 'Unauthorized'}}
P.s print(session.cookies.get_dict()) = Пустой