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?

profile picture
已提問 4 個月前檢視次數 142 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南