이 엔드포인트를 사용하여 특정 유효성 검사 유형에 대해 유효성을 검사할 조직을 제출합니다.
verified_users
배열에 대해 사용할 가능한 사용자 ID의 목록을 받으려면 목록 승인자 엔드포인트를 사용합니다.
curl -X POST \
'https://www.digicert.com/services/v2/organization/{{organization_id}}/validation' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"validations": [
{
"type": "ov"
},
{
"type": "ev",
"verified_users": [
{
"id": 112233
},
{
"first_name": "Jill",
"last_name": "Valentine",
"job_title": "CTO",
"telephone": "555-555-5555",
"email": "jill.valentine@digicert.com"
}
]
}
]
}'
import requests
url = "https://www.digicert.com/services/v2/organization/{{organization_id}}/validation"
payload = "{\n \"validations\": [\n {\n \"type\": \"ov\"\n },\n {\n \"type\": \"ev\",\n \"verified_users\": [\n {\n \"id\": 112233\n },\n {\n \"first_name\": \"Jill\",\n \"last_name\": \"Valentine\",\n \"job_title\": \"CTO\",\n \"telephone\": \"555-555-5555\",\n \"email\": \"jill.valentine@digicert.com\"\n }\n ]\n }\n ]\n}"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/organization/{{organization_id}}/validation"
payload := strings.NewReader("{\n \"validations\": [\n {\n \"type\": \"ov\"\n },\n {\n \"type\": \"ev\",\n \"verified_users\": [\n {\n \"id\": 112233\n },\n {\n \"first_name\": \"Jill\",\n \"last_name\": \"Valentine\",\n \"job_title\": \"CTO\",\n \"telephone\": \"555-555-5555\",\n \"email\": \"jill.valentine@digicert.com\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
var request = require("request");
var options = { method: 'POST',
url: 'https://www.digicert.com/services/v2/organization/{{organization_id}}/validation',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' },
body:
{ validations:
[ { type: 'ov' },
{ type: 'ev',
verified_users:
[ { id: 112233 },
{ first_name: 'Jill',
last_name: 'Valentine',
job_title: 'CTO',
telephone: '555-555-5555',
email: 'jill.valentine@digicert.com' } ] } ] },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
// empty
기존 연락처를 추가할 때 요청 본문에 id
매개 변수를 사용하고 first_name
, last_name
, job_title
, telephone
, 및 email
변개 변수를 생략합니다.
이름 | 필수/옵션 | 유형 | 설명 |
---|---|---|---|
validations | 필수 | array | 조직을 유효성 검사할 유효성 검사 유형의 목록입니다. |
.. type | 필수 | string |
유효성 검사 유형 식별자입니다. 용어집 — 유효성 검사를 참조하십시오. |
.. verified_users | 필수 | array |
조직에 대해 확인된 EV 승인자의 목록입니다.ov 및 dv 유효성 검사 유형에 대해 옵션입니다.
|
.. .. id | 필수* | int |
EV 승인자로 추가할 사용자의 ID입니다. *기존 연락처를 추가하는 경우에만 필수입니다. 포함된 경우 다른 연락처 매개 변수는 무시합니다. |
.. .. first_name | 옵션* | string |
확인된 연락처의 이름(성 제외)입니다. * id 매개 변수를 생략한 경우 필수입니다.
|
.. .. last_name | 옵션* | string |
확인된 연락처의 성입니다. * id 매개 변수를 생략한 경우 필수입니다.
|
.. .. job_title | 옵션* | string |
확인된 연락처의 직함입니다. * id 매개 변수를 생략한 경우 필수입니다.
|
.. .. telephone | 옵션* | string |
확인된 연락처의 전화 번호입니다. * id 매개 변수를 생략한 경우 필수입니다.
|
옵션* | string |
확인된 연락처의 이메일 주소입니다. * id 매개 변수를 생략한 경우 필수입니다.
|