Created
June 15, 2018 17:57
-
-
Save d4hines/0b0f54cef947c1a351525e94f99320f5 to your computer and use it in GitHub Desktop.
NTLM to get BID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests_ntlm import HttpNtlmAuth | |
import json | |
session = requests.Session() | |
session.auth = HttpNtlmAuth('DOMAIN\\username', 'password') | |
url = "https://recruitercrm.regent.edu/CRMRECRUIT/api/data/v8.0/contacts?$filter=datatel_erpid%20eq%20%27B06892407%27" | |
response = session.get(url) | |
parsed = json.loads(response.text) | |
bid = parsed['value'][0]['datatel_erpid'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment