deleteSkillAuthorization method
Unlinks a third-party account from a skill.
May throw NotFoundException. May throw ConcurrentModificationException.
Parameter skillId
:
The unique identifier of a skill.
Parameter roomArn
:
The room that the skill is authorized for.
Implementation
Future<void> deleteSkillAuthorization({
required String skillId,
String? roomArn,
}) async {
ArgumentError.checkNotNull(skillId, 'skillId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.DeleteSkillAuthorization'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SkillId': skillId,
if (roomArn != null) 'RoomArn': roomArn,
},
);
}