Use este terminal para hacer una lista de las notas adjuntas a un certificado.
curl -X GET \
'https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note"
payload = ""
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note"
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/certificate/{{certificate_id}}/note',
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);
});
{
"notes": [
{
"date_created": "2019-02-05T21:34:42+00:00",
"text": "Note text.",
"user": {
"id": 123,
"first_name": "Locke",
"last_name": "Cole",
"email": "lock.cole@example.com"
}
}
]
}
Nombre | Tipo | Descripción |
---|---|---|
notes | array | Lista de notas de certificados. |
.. date_created | string |
Marca de tiempos de cuando se creó la nota. Formato: Zona horaria UTC y fecha de ISO 8601 |
.. text | string | Texto del mensaje de la nota. |
.. user | object | Detalles sobre el usuario que agregó la nota. |
.. .. id | int | Id. de usuario. |
.. .. first_name | string | Nombre del usuario. |
.. .. last_name | string | Apellido del usuario. |
string | Dirección de correo electrónico del usuario. |