验证详情

GET
https://www.digicert.com/services/v2/organization/{{organization_id}}/validation

使用此端点获取关于组织的验证详细信息。

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/organization/{{organization_id}}/validation' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
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)
Go
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))

}
NodeJS
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);
});
200 OK
{
  "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 用户的姓氏。