Certificate Finder
This class allows making GET requests to the certificate resource in the OpenGate North API.
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | Reference to the API object. |
findById(id)
Download a specific certificate by id. This execute a GET http method
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| id | string |
❌ | Id of the certificate. |
Retorna
Tip
Tipo: Promise
findByIdAndFormat(id, mimetype)
Download a certificate using id and in a specific format. This execute a GET http method
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| id | string |
❌ | Id of the certificate. |
| mimetype | string |
❌ | Certificate format mimetype. |
Retorna
Tip
Tipo: Promise