Elenca note certificato

GET
https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note

Usa questo endpoint per elencare le note allegate a un certificato.

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

}
NodeJS
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);
});
200 OK
{
  "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"
      }
    }
  ]
}

Parametri di risposta

Nome Tipo Descrizione
notes array Elenco delle note certificato.
.. date_created string Indicazione di data e ora di quando è stata creata la nota.
Formato: Fuso orario UTC e data ISO 8601
.. text string Testo del messaggio nota.
.. user object Dettagli sull’utente che ha aggiunto la nota.
.. .. id int ID utente.
.. .. first_name string Nome dell’utente.
.. .. last_name string Cognome dell’utente.
.. .. email string Indirizzo e-mail dell’utente.