Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. class MyAdapter(HTTPAdapter):
  2. def get_connection(self, url, proxies=p):
  3. print('test')
  4. super(MyAdapter, self).get_connection(url, proxies)
  5.  
  6. Protocol.HTTP_ADAPTER_CLS = MyAdapter
  7. BaseProtocol.HTTP_ADAPTER_CLS = MyAdapter
  8.  
  9. credentials = ServiceAccount(username='thisismyusername', password='This is a secret!')
  10. config = Configuration(service_endpoint='thisismyserviceendpoint', credentials=credentials)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement