How to distinguish Shared Device & Personal Device

0

Hi,
I wonder what is the fastest/easiest way to find out if a Shared Device is accessing the skill or a Personal Device.
Thanks.

user
質問済み 4年前274ビュー
4回答
0

You could call from your skill the resolveRoom API https://docs.aws.amazon.com/a4b/latest/APIReference/API_ResolveRoom.html

When you get room name back, it will be a shared device. When no room is returned, the request is coming from a personal device.

AWS
回答済み 4年前
0

Thanks for the prompt feedback, milo@aws.

user
回答済み 4年前
0

When calling ResolveRoom for Personal Device, are we supposed to get a response but without any RoomArn? or we should get an Error? Because I am getting this:

"errorMessage": "An error occurred (ValidationException) when calling the ResolveRoom operation: User ID is invalid, for a different skill or does not currently have room information associated with it"

Just want to ensure that this is the expected behavior. Thanks.

user
回答済み 4年前
0

The error message is correct.

AWS
回答済み 4年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ