RomZay commited on
Commit
ad4d321
·
verified ·
1 Parent(s): 9b6469e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -16,11 +16,9 @@ USER_PIC_PATH = "https://huggingface.co/spaces/PLRMB/P-MSQ-API-PREVIEW/resolve/m
16
 
17
  def authorize(api_key):
18
  test_data = {
19
- "kind": "ALL_AUTH",
20
- "identificator": api_key
21
  }
22
  test_headers = {
23
- "authorization": f"{URL_HEADER}",
24
  'Accept': 'application/json'
25
  }
26
 
@@ -30,7 +28,7 @@ def authorize(api_key):
30
  print(f"Request Headers: {test_headers}")
31
  print(f'{json.dumps(test_data)}')
32
  response = requests.post(
33
- "https://polrambora.com/api/v2/checkSDPA",
34
  json=test_data,
35
  timeout=10
36
  )
 
16
 
17
  def authorize(api_key):
18
  test_data = {
19
+ "key": api_key
 
20
  }
21
  test_headers = {
 
22
  'Accept': 'application/json'
23
  }
24
 
 
28
  print(f"Request Headers: {test_headers}")
29
  print(f'{json.dumps(test_data)}')
30
  response = requests.post(
31
+ "https://host.palple.polrambora.com/check_key_impv",
32
  json=test_data,
33
  timeout=10
34
  )