Certificate Finder

CertificateFinder

CertificateFinder Objects

class CertificateFinder()

This class allow make get request to certificate resource into Opengate North API.

constructor
function constructor()

Constructor

Arguments:

  • Reference InternalOpenGateAPI - to the API object.

findById
function findById(id: string) -> 'Promise'

Download a specific certificate by id. This execute a GET http method

Arguments:

  • id string - Id of the certificate.

Returns:

  • Promise

findByIdAndFormat
function findByIdAndFormat(id: string,mimetype: string) -> 'Promise'

Download a certificate using id and in a specific format. This execute a GET http method

Arguments:

  • id string - Id of the certificate.
  • mimetype string - Certificate format mimetype.

Returns:

  • Promise