getImportJob method

Future<GetImportJobResponse> getImportJob({
  1. required String jobId,
})

Provides information about an import job.

May throw BadRequestException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter jobId : The ID of the import job.

Implementation

Future<GetImportJobResponse> getImportJob({
  required String jobId,
}) async {
  ArgumentError.checkNotNull(jobId, 'jobId');
  _s.validateStringLength(
    'jobId',
    jobId,
    1,
    1152921504606846976,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v2/email/import-jobs/${Uri.encodeComponent(jobId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetImportJobResponse.fromJson(response);
}