getShlManifest method
Future<HttpBody>
getShlManifest(
- ManifestParams request,
- String externalShlId, {
- String? $fields,
Forward a manifest request for a given SHL
request - The metadata request object.
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
$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> getShlManifest(
ManifestParams request,
core.String externalShlId, {
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v4/shl/m/' + commons.escapeVariable('$externalShlId');
final response_ = await _requester.request(
url_,
'POST',
body: body_,
queryParams: queryParams_,
);
return HttpBody.fromJson(response_ as core.Map<core.String, core.dynamic>);
}