Login
Use your web or mobile login credentials
-
username
: Your usernamestring
-
password
: Your passwordstring
import requests
import json
payload = {
"username":"tyty",
"password":"wacoco#"
}
# jsonify the payload
data = json.dumps(payload)
Send a post request with the payload
url = "https://subpadi.com/rest-auth/login/"
res = requests.post(url, data=data)
Response
{
"key": "eacf1ab727d134b254361d8bfc28a2bf6ab0a111"
}
View code in other programming languages here