question

Mohamed Hassan avatar image
Mohamed Hassan asked

Should the user be redirected to Amazon login page?

to integrate DRS with HW device to request product directly. HW should authonticate directly without user intervention. Amazon tutorial said user must be redirect to Amazon login page. Can anyone explain the idea or sample code.

dash replenishment service
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

Before the user can use the hardware as a one-click solution, there should be a device registration, during which Login with Amazon is used. Please refer to the documentation for more details: https://developer.amazon.com/dash-replenishment-service/getting-started and

https://developer.amazon.com/public/solutions/devices/dash-replenishment-service/

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ravi-butani avatar image
ravi-butani answered

Hii there... First end user need to register/Subscribe their product with DRS by end customer facing webpage...using Product ID (Device id) and any random pair of serial no...after providing consumable preference, shipping and billing details one 20 char Authorization code will be generated...

End user need to feed this authorization code in device so device can automatically able to generate access and refresh token and perform replenishment...

MY DRS4Baby Project Here is my project shows customer facing webpage... and ESP8266 serial terminal log... Hope it helps..

Regards,

Ravi

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

HI @ravi-butani, Which programming language you have opted for ESP8266 ?

0 Likes 0 ·