taient sdk for python
Project description
Taient SDK for Python
pip install taientsdk requests dotenv
cat > .env<<EOF
TAIENT_HRP_SERVER=...
TAIENT_HRP_PORT=...
EOF
cat > demo.py<<EOF
from dotenv import load_dotenv
from taientsdk import TaientClient
load_dotenv()
if __name__ == "__main__":
# 1. init client
conf = {
"TAIENT_HRP_USERNAME": "your_username",
"TAIENT_HRP_PASSWORD": "your_password"
}
client = TaientClient(config=conf)
# 2. Obtain a list of candidates with contact information
# POST /exploree/search
search_payload = {
"page": 1,
"rowsPerPage": 10,
"searchParamList": [
{
"name": "有电话",
"typeValue": "contactTypes"
}
]
}
hrp_response = client.hrp_post("/exploree/search", search_payload)
if hrp_response:
print("List of candidates with phone numbers:", client.get_data(hrp_response, dict))
# 3. Obtain contact information of a specific candidate
# GET /candidate/getCandidateContact?candidateId={exploreeId}
hrp_response = client.hrp_get("/candidate/getCandidateContact?candidateId=ea7d4851-48e9-4f40-9177-df9b41be2a36")
if hrp_response:
print("Candidate contact information:", client.get_data(hrp_response, dict))
# 4. Write a follow-up and determine whether it has been duplicated (within iSoftStone)
# GET /candidate/comment/{exploreeId}
comment = {
"commentText": "api测试跟进"
}
hrp_response = client.hrp_post("/candidate/comment/ea7d4851-48e9-4f40-9177-df9b41be2a36", comment)
if hrp_response:
print("Write follow-up information for candidate:", client.get_data(hrp_response, dict))
# 5. Obtain candidate details (optional)
# GET /candidate/getCandidateBasicInfo?candidateId={exploreeId}
hrp_response = client.hrp_get("/candidate/getCandidateBasicInfo?candidateId=2e0441d8-6bae-4424-a9f8-86c5726ba77d")
if hrp_response:
print("Detailed information of candidate:", client.get_data(hrp_response, dict))
EOF
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
taientsdk-0.0.9.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taientsdk-0.0.9.tar.gz.
File metadata
- Download URL: taientsdk-0.0.9.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
745a8a67631c2ca13daa93502c882391bec0dcba38386c4d0b66a9c38a8afc98
|
|
| MD5 |
1b94e5e2768d1b4f3f6f1568ce21225a
|
|
| BLAKE2b-256 |
71a1c8a436f8865de42c89a47c2b99912688969ccbc6a057dfb812d14b05625e
|
File details
Details for the file taientsdk-0.0.9-py3-none-any.whl.
File metadata
- Download URL: taientsdk-0.0.9-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e08250707f72b7f2e7e7191ebe8f33bcbf267d67f94ed8b180ab71427f8fcb60
|
|
| MD5 |
66ea5d1c7288e94954ebe12957e54fc8
|
|
| BLAKE2b-256 |
7eaefb86a8873f1a2644b9bb7248816a8ccb76230e13f38605f28f4c591f77f4
|