adding projects to repo
This commit is contained in:
22
vrops-api/__dev/old/authenticate.py
Normal file
22
vrops-api/__dev/old/authenticate.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import requests
|
||||
|
||||
url = "https://sc1prapvro01/suite-api/api/auth/token/acquire"
|
||||
|
||||
payload = "{\n\"username\" : \"dtomlinson@Group.WilliamHill.PLC\",\
|
||||
\n\"authSource\" : \"whgroup\",\n\"password\" : \"yi3Uw9Mw\"\n}"
|
||||
|
||||
headers = {
|
||||
'Accept': "application/json",
|
||||
'Content-Type': "application/json",
|
||||
'Cache-Control': "no-cache",
|
||||
'Host': "sc1prapvro01",
|
||||
'Accept-Encoding': "gzip, deflate",
|
||||
'Content-Length': "102",
|
||||
'Connection': "keep-alive",
|
||||
'cache-control': "no-cache"
|
||||
}
|
||||
|
||||
response = requests.request("POST", url, data=payload, headers=headers,
|
||||
verify=False)
|
||||
|
||||
print(response.text)
|
||||
Reference in New Issue
Block a user