generated from justuser-31/mrl_v1_license
19 lines
433 B
Python
19 lines
433 B
Python
import requests
|
|
|
|
url = "http://127.0.0.1:8000/create_account" # Replace with actual endpoint URL
|
|
|
|
payload = {
|
|
'token': 'test',
|
|
'username': 'test',
|
|
'password': 'test',
|
|
'drive_quota': '1024' # in MB
|
|
}
|
|
|
|
headers = {
|
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
}
|
|
|
|
response = requests.post(url, data=payload, headers=headers)
|
|
|
|
print("Status Code:", response.status_code)
|
|
print("Response Text:", response.text) |