get method

Future<HttpBody> get(
  1. String externalShlId,
  2. String resourceToken, {
  3. String? $fields,
})

Forward a resource request for a given SHL

Request parameters:

externalShlId - Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q

resourceToken - Required. Encoded, encrypted message containing resource access details

$fields - Selector specifying which fields to include in a partial response.

Completes with a HttpBody.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<HttpBody> get(
  core.String externalShlId,
  core.String resourceToken, {
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    'fields': ?$fields == null ? null : [$fields],
  };

  final url_ =
      'v4/shl/r/' +
      commons.escapeVariable('$externalShlId') +
      '/' +
      commons.escapeVariable('$resourceToken');

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return HttpBody.fromJson(response_ as core.Map<core.String, core.dynamic>);
}