Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import requests
  2. from requests.auth import HTTPBasicAuth
  3. fbheaders = 'application/json'
  4.  
  5. def login():
  6. login_URI = 'https://montcopawebdocs.filebound.com/api/login'
  7. cred = {
  8. 'username': input('Username: '),
  9. 'password': input('Password: ')
  10. }
  11. #return(requests.post(login_URI, cred).json())
  12. return requests.post(login_URI, cred, headers=fbheaders)
  13.  
  14. print(login())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement