curl -sS -X PUT 'https://apis.lucela.kr/v1/direct/listings/2f6c1d8e-4b3a-4e5f-9a7c-1d2e3f4a5b6c/contact-disclosure' \
-H "X-Lucela-API-Key: $LUCELA_API_KEY" \
-H "Authorization: Bearer $LUCELA_DIRECT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"disclosure":"AFTER_ACCEPT","channels":["phone"]}'
import os, uuid, requests
r = requests.request(
"PUT", "https://apis.lucela.kr/v1/direct/listings/2f6c1d8e-4b3a-4e5f-9a7c-1d2e3f4a5b6c/contact-disclosure",
headers={
"X-Lucela-API-Key": os.environ["LUCELA_API_KEY"],
"Authorization": "Bearer " + os.environ["LUCELA_DIRECT_TOKEN"],
},
json={
"disclosure": "AFTER_ACCEPT",
"channels": [
"phone",
],
},
timeout=20,
)
print(r.status_code, r.json())
const res = await fetch("https://apis.lucela.kr/v1/direct/listings/2f6c1d8e-4b3a-4e5f-9a7c-1d2e3f4a5b6c/contact-disclosure", {
method: "PUT",
headers: {
"X-Lucela-API-Key": process.env.LUCELA_API_KEY,
"Authorization": `Bearer ${process.env.LUCELA_DIRECT_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"disclosure": "AFTER_ACCEPT",
"channels": [
"phone"
]
}),
});
console.log(res.status, await res.json());