retrieveKey method

Future<ClientResponse<KeyResponse, Errors>> retrieveKey(
  1. String keyId
)

Retrieves the key for the given Id.

@param {String} keyId The Id of the key. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<KeyResponse, Errors>> retrieveKey(String keyId) {
  return _start<KeyResponse, Errors>()
      .withUri('/api/key')
      .withUriSegment(keyId)
      .withMethod('GET')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => KeyResponse.fromJson(d)))
      .go();
}