getJourney method

Future<GetJourneyResponse> getJourney({
  1. required String applicationId,
  2. required String journeyId,
})

Retrieves information about the status, configuration, and other settings for a journey.

May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. May throw TooManyRequestsException.

Parameter applicationId : The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Parameter journeyId : The unique identifier for the journey.

Implementation

Future<GetJourneyResponse> getJourney({
  required String applicationId,
  required String journeyId,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  ArgumentError.checkNotNull(journeyId, 'journeyId');
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/apps/${Uri.encodeComponent(applicationId)}/journeys/${Uri.encodeComponent(journeyId)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return GetJourneyResponse(
    journeyResponse: JourneyResponse.fromJson($json),
  );
}