resolveOnePublic method

Future<DynamiteResponse<ReferenceApiResolveOnePublicResponseApplicationJson, void>> resolveOnePublic({
  1. required String reference,
  2. required String sharingToken,
  3. bool? oCSAPIRequest,
})

Resolve from a public page.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • reference Reference to resolve.
  • sharingToken Token of the public share.
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: Reference returned

See:

Implementation

Future<_i1.DynamiteResponse<ReferenceApiResolveOnePublicResponseApplicationJson, void>> resolveOnePublic({
  required String reference,
  required String sharingToken,
  bool? oCSAPIRequest,
}) async {
  final _request = $resolveOnePublic_Request(
    reference: reference,
    sharingToken: sharingToken,
    oCSAPIRequest: oCSAPIRequest,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

  final _serializer = $resolveOnePublic_Serializer();
  return _i1.ResponseConverter<ReferenceApiResolveOnePublicResponseApplicationJson, void>(_serializer)
      .convert(_response);
}