Guest User

Untitled

a guest
Mar 8th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import json
  2. import requests
  3. import secrets
  4. import time
  5.  
  6. startTime = time.time()
  7.  
  8. baseURL = secrets.baseURL
  9. user = secrets.user
  10. password = secrets.password
  11.  
  12. auth = requests.post(baseURL + '/users/'+user+'/login?password='+password).json()
  13. session = auth["session"]
  14. headers = {'X-ArchivesSpace-Session':session, 'Content_Type':'application/json'}
  15. print 'authenticated'
Add Comment
Please, Sign In to add comment