Spaces:
Sleeping
Sleeping
Download test_api.py from badarfaisa1/recruto: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/spaces/badarfaisa1/recruto/resolve/main/test_api.py
- Command line
-
hf download hf://spaces/badarfaisa1/recruto/test_api.py
-
curl -L -o test_api.py https://huggingface.co/spaces/badarfaisa1/recruto/resolve/main/test_api.py
305 Bytes
| import requests | |
| url = "http://127.0.0.1:8000/api/candidate/apply-with-cv" | |
| data = {"job_id": "job_123", "name": "Test", "email": "test@test.com"} | |
| headers = {"Authorization": "Bearer BAD_TOKEN"} | |
| r = requests.post(url, data=data, headers=headers) | |
| print("Status:", r.status_code) | |
| print("Response:", r.text) | |