How can I use the AWS IoT Core API to display data on a web page?

0

Here are the challenges that we faced.

We have listed the IoT APIs that we need in our web application. All the API requests worked in Postman. We are building a website to display all the things connected to our cloud account.

Currently, we need help to sign AWS Signature version 4 requests. We were unable to display the list of things on our web page using JavaScript. There is a signature mismatch error that prevents us to retrieve the data. Can somebody help us with sample program codes that work?

1回答
2

Hi there, signing of requests using Sig V4 is automatically done by the AWS SDK so you do not have to do this manually. The Javascript SDK is available here and here's some sample code using the SDK to call the list things endpoint. The full API documentation for the SDK is also available here if you need other APIs as well.

Hope this helps!

AWS
Isaac
回答済み 4ヶ月前
profile picture
エキスパート
レビュー済み 4ヶ月前

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

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

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

関連するコンテンツ