Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from requests.auth import HTTPBasicAuth
- from getpass import getpass
- import requests
- res = requests.get('https://smart-predprod.mos.ru/mdm/api/v1/dictionary/dto/DynamicRegistries')
- auth=HTTPBasicAuth('soldatovks', 'K7q3wGc')
- if res:
- print('response OK')
- else:
- print('Response failed')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement