Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyAdapter(HTTPAdapter):
- def get_connection(self, url, proxies=p):
- print('test')
- super(MyAdapter, self).get_connection(url, proxies)
- Protocol.HTTP_ADAPTER_CLS = MyAdapter
- BaseProtocol.HTTP_ADAPTER_CLS = MyAdapter
- credentials = ServiceAccount(username='thisismyusername', password='This is a secret!')
- config = Configuration(service_endpoint='thisismyserviceendpoint', credentials=credentials)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement