Hi,
I am developing dash App for Amazon DRS. While I am trying to login with amzone with scope 'dash:replenish' I am getting error. I have attached screen shot for that.
Basic Information.
Is DRS has location restriction?
Here is my sample code for login through web.
var options = new Object(); var scope = ('dash:replenish'); //'profile'; var scope_data = new Object(); scope_data['dash:replenish'] = { "device_model":"f933dcbb-98fd-4f97-80dc-7a0829a7888e","serial":"40:8d:5c:26:50:80","is_test_device":"true"}; options['client_id'] = "amzn1.application-oa2-client.15580d03b46c4ae6b6bae547cea3a93c"; options['scope_data'] = scope_data; options['scope'] = scope; options['response_type'] = 'code'; amazon.Login.authorize(options, function (response) { if (response.error) { console.log(response); alert('oauth error ' + response.error); return; } else { console.log(response.code); if (response.code) { that.dashService.callDash(response.code) .then((res) => { that.errorMessage = ""; }) .catch((err) => { if (err.message) that.errorMessage = err.message; else that.errorMessage = "Something went wrong!"; }); } } });
Highly appriciate your help