updateBaiduChannel method
Future<UpdateBaiduChannelResponse>
updateBaiduChannel({
- required String applicationId,
- required BaiduChannelRequest baiduChannelRequest,
Enables the Baidu channel for an application or updates the status and settings of the Baidu channel for an application.
May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. May throw TooManyRequestsException.
Parameter applicationId
:
The unique identifier for the application. This identifier is displayed as
the Project ID on the Amazon Pinpoint console.
Implementation
Future<UpdateBaiduChannelResponse> updateBaiduChannel({
required String applicationId,
required BaiduChannelRequest baiduChannelRequest,
}) async {
ArgumentError.checkNotNull(applicationId, 'applicationId');
ArgumentError.checkNotNull(baiduChannelRequest, 'baiduChannelRequest');
final response = await _protocol.sendRaw(
payload: baiduChannelRequest,
method: 'PUT',
requestUri:
'/v1/apps/${Uri.encodeComponent(applicationId)}/channels/baidu',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return UpdateBaiduChannelResponse(
baiduChannelResponse: BaiduChannelResponse.fromJson($json),
);
}