Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- from requests.auth import HTTPBasicAuth
- fbheaders = 'application/json'
- def login():
- login_URI = 'https://montcopawebdocs.filebound.com/api/login'
- cred = {
- 'username': input('Username: '),
- 'password': input('Password: ')
- }
- #return(requests.post(login_URI, cred).json())
- return requests.post(login_URI, cred, headers=fbheaders)
- print(login())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement