이 엔드포인트를 사용하여 조직에 대한 유효성 검사 상세 정보를 받습니다.
curl -X GET \
'https://www.digicert.com/services/v2/organization/{{organization_id}}/validation' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/organization/{{organization_id}}/validation"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/organization/{{organization_id}}/validation"
req, _ := http.NewRequest("GET", url, nil)
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: 'GET',
url: 'https://www.digicert.com/services/v2/organization/{{organization_id}}/validation',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"validations": [
{
"type": "ov",
"name": "OV",
"description": "Normal Organization Validation",
"date_created": "2018-10-09T19:29:02+00:00",
"validated_until": "2019-11-09T20:28:55+00:00",
"status": "active"
},
{
"type": "ev",
"name": "EV",
"description": "Extended Organization Validation (EV)",
"status": "pending",
"verified_users": [
{
"id": 12,
"first_name": "John",
"last_name": "Smith"
},
{
"id": 9,
"first_name": "Destinee",
"last_name": "Church"
}
]
}
]
}
이름 | 유형 | 설명 |
---|---|---|
validations | array | 조직에 대한 승인된 유효성 검사 유형의 목록입니다. |
.. type | string |
유효성 검사 유형 식별자입니다. 용어집 — 유효성 검사를 참조하십시오. |
.. name | string | 유효성 검사 유형의 이름입니다. |
.. description | string | 유효성 검사 유형의 설명입니다. |
.. date_created | string |
조직을 유효성 검사했을 때의 타임스탬프입니다. 형식: UTC 표준 시간대 ISO 8601 날짜 |
.. validated_until | string |
유효성 검사 상태가 만료될 때의 타임스탬프입니다. 형식: UTC 표준 시간대 ISO 8601 날짜 |
.. status | string |
유효성 검사의 상태입니다. 가능한 값: pending , active
|
.. verified_users | array | 특정 유효성 검사 유형에 대해 확인된 사용자의 목록입니다. |
.. .. id | int | 사용자 ID입니다. |
.. .. first_name | string | 사용자의 이름입니다. |
.. .. last_name | string | 사용자의 성입니다. |