使用此端点获取关于组织的详细信息。
curl -X GET \
'https://www.digicert.com/services/v2/organization/{{organization_id}}' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/organization/{{organization_id}}"
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}}"
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}}',
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);
});
{
"id": 112233,
"status": "active",
"name": "Epigyne Unwieldiness llc",
"assumed_name": "Epigyne Unwieldiness",
"display_name": "Epigyne Unwieldiness llc (Epigyne Unwieldiness)",
"is_active": true,
"address": "932 Prospect Street",
"address2": "Floor 08",
"zip": "40849",
"city": "Minneapolis",
"state": "mn",
"country": "us",
"telephone": "666-186-6450",
"container": {
"id": 4,
"parent_id": 0,
"name": "DigiCert Inc.",
"is_active": true
},
"organization_contact": {
"id": 184,
"first_name": "Gia",
"last_name": "Booth",
"email": "gia.booth@inbox.com",
"job_title": "Clinical Laboratory Technician",
"telephone": "666-186-6450",
"telephone_extension": "736"
}
}
{
"id": 112236,
"status": "active",
"name": "Palaeontography Enigmatic Corp.",
"assumed_name": "Palaeontography Enigmatic",
"display_name": "Palaeontography Enigmatic Corp. (Palaeontography Enigmatic)",
"is_active": true,
"address": "695 Monroe Drive",
"address2": "Bldg 74",
"zip": "18851",
"city": "Pittsburgh",
"state": "pa",
"country": "us",
"telephone": "546-438-8237",
"container": {
"id": 4,
"parent_id": 0,
"name": "DigiCert Inc.",
"is_active": true
},
"organization_contact": {
"id": 12,
"first_name": "Julissa",
"last_name": "Woodard",
"email": "julissa.woodard@mail.com",
"job_title": "Telemarketer",
"telephone": "546-438-8237",
"telephone_extension": "215"
},
"ev_approvers": [
{
"id": 16,
"first_name": "Destinee",
"last_name": "Church"
}
],
"extended_validation": {
"business_category": "Private Organization",
"registration_number": "12345",
"jurisdiction_city": "Lehi",
"jurisdiction_state": "Utah",
"jurisdiction_country": "us",
"incorp_agency": "Real Company Name"
},
"container_id_assignments": [
"8"
]
}
名称 | 类型 | 描述 |
---|---|---|
id | int | 组织编号。 |
status | string |
组织状态。 可能的值: active ,inactive
|
name | string | 组织的法定名称。 |
assumed_name | string |
组织的公开名称。 也称为经营名称 (DBA)。 |
display_name | string |
组织的全名。 使用名称 + assumed_name 构建。 |
is_active | bool | 组织的活跃状态。 |
address | string | 组织所在的地址。 |
address2 | string | |
zip | string | 组织所在地的邮政编码。 |
city | string | 组织所在的城市。 |
state | string | 组织所在的州。 |
country | string | 组织所在的国家/地区。 |
telephone | string | 组织电话号码。 |
container | object | 要附加组织的主要容器。 |
.. id | int | 容器 ID。 |
.. parent_id | string | 容器父级的 ID。 |
.. name | string | 容器的名称。 |
.. is_active | bool | 容器的活跃状态。 |
organization_contact | object | 组织联系人信息。 |
.. id | int | 组织联系人 ID。 |
.. first_name | string | 组织联系人的名字。 |
.. last_name | string | 组织联系人的姓氏。 |
string | 组织联系人的电子邮件地址。 | |
.. job_title | string | 组织联系人的职位名称。 |
.. telephone | string | 组织联系人的电话号码。 |
.. telephone_extension | string | 组织联系人的电话分机号。 |
ev_approvers | array | 可以批准 EV 和代码签名订单的用户的列表。 |
.. id | int | 用户 ID。 |
.. first_name | string | 用户名字。 |
.. last_name | string | 用户姓氏。 |
extended_validation | object | 关于组织的扩展验证信息。 |
container_id_assignments | array | 要向其分配组织的容器的列表。 |