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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠