commit method
Commits an app edit.
Request parameters:
packageName
- Package name of the app.
editId
- Identifier of the edit.
changesNotSentForReview
- Indicates that the changes in this edit will
not be reviewed until they are explicitly sent for review from the Google
Play Console UI. These changes will be added to any other changes that are
not yet sent for review.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a AppEdit.
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<AppEdit> commit(
core.String packageName,
core.String editId, {
core.bool? changesNotSentForReview,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (changesNotSentForReview != null)
'changesNotSentForReview': ['${changesNotSentForReview}'],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'androidpublisher/v3/applications/' +
commons.escapeVariable('$packageName') +
'/edits/' +
commons.escapeVariable('$editId') +
':commit';
final response_ = await _requester.request(
url_,
'POST',
queryParams: queryParams_,
);
return AppEdit.fromJson(response_ as core.Map<core.String, core.dynamic>);
}