使用此端點提交指定的驗證類型的待驗證組織。
若要取得用於 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 參數時必填。
|