Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. from requests.auth import HTTPBasicAuth
  2. from getpass import getpass
  3. import requests
  4. res = requests.get('https://smart-predprod.mos.ru/mdm/api/v1/dictionary/dto/DynamicRegistries')
  5. auth=HTTPBasicAuth('soldatovks', 'K7q3wGc')
  6. if res:
  7.     print('response OK')
  8. else:
  9.     print('Response failed')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement