get method
Gets the status of a license for a customer to determine if they have access for a given app.
Request parameters:
applicationId - Application Id
customerId - Customer Id
$fields - Selector specifying which fields to include in a partial
response.
Completes with a CustomerLicense.
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<CustomerLicense> get(
core.String applicationId,
core.String customerId, {
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'fields': ?$fields == null ? null : [$fields],
};
final url_ =
'appsmarket/v2/customerLicense/' +
commons.escapeVariable('$applicationId') +
'/' +
commons.escapeVariable('$customerId');
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return CustomerLicense.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}