retrieveAction method

Future<ClientResponse<ActionResponse, Errors>> retrieveAction(
  1. String actionId
)

Retrieves a single action log (the log of a user action that was taken on a user previously) for the given Id.

@param {String} actionId The Id of the action to retrieve. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<ActionResponse, Errors>> retrieveAction(
    String actionId) {
  return _start<ActionResponse, Errors>()
      .withUri('/api/user/action')
      .withUriSegment(actionId)
      .withMethod('GET')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => ActionResponse.fromJson(d)))
      .go();
}