question

astric87 avatar image
astric87 asked

how can I test DRS device without access token?

how can I test DRS device without access token?

testingdevicesdash 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

either you are doing test purchase or a real purchase... To use Amazon DRS ... you needs to do LWA process followed by getting auth code and change it for get refresh token... Access token can be generated from refresh token any time.. but without access token its not possible to access Amazon DRS by device..

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

if you are finding a easiest and very low cost way for integrating Amazon DRS than my one of the following project may be useful to you..

https://www.hackster.io/ravi-butani/drs-for-sanitization-needs-of-baby-25b391

10 |5000

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

astric87 avatar image
astric87 answered

Thanks for your reply, also, nice project! I'm stuck at getting the AuthCode.

I keep getting the error https://aarons2222.github.io/drs-handle-login.html?error_description=An+unknown+scope+was+requested&error=invalid_scope

any ideas on this? thanks

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

please check following...

1. Have you used same redirect uri while creating DRS Device?

2. Have you properly encoded redirect uri during LWA process?

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

following is example of LWA request..check for proper encoding in your case.. change client ID, replace your productID at yourproductidcode and Serialno at yourdeviceserialno and change redirect uri at last...

https://www.amazon.com/ap/oa?client_id=amzn1.application-oa2-client.ec9be5378ace4941d323b06e68e28e33&scope=dash%3Areplenish&scope_data=%7B%22dash%3Areplenish%22%3A%7B%22device_model%22%3A%22yourproductidcode%22%2C%22serial%22%3A%22yourdeviceserialno%22%2C%22is_test_device%22%3Atrue%7D%7D&response_type=code&redirect_uri=https%3A%2F%2Fdrs4baby.blogspot.in%2F2016%2F11%2Fregistration.html
10 |5000

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