File size: 476 Bytes
35709fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import requests
import json

url = "http://localhost:8000/analyze-candidate"
payload = {
    "candidate_id": "92f155f8-8422-4819-ade1-697624640103",
    "job_id": "76259020-f560-4927-ba21-4ea671e62c16"
}
headers = {"Content-Type": "application/json"}

try:
    response = requests.post(url, data=json.dumps(payload), headers=headers)
    print(f"Status: {response.status_code}")
    print(json.dumps(response.json(), indent=2))
except Exception as e:
    print(f"Error: {e}")