Hello Guys,
I am trying to install Amazon Alexa Voice service in My Ubuntu 18.04. I have followed the instructions given in this link https://github.com/alexa/avs-device-sdk/wiki/Ubuntu-Linux-Quick-Start-Guide. I have created a product in the amazon developer console under Amazon Web Services I am sharing the screenshot of that here:
then while doing the Code-Based-Linking. I followed the steps given in this link https://developer.amazon.com/docs/alexa-voice-service/code-based-linking-other-platforms.html#step1
As per the Step 1:
I opened my Ubuntu terminal and wrote the command:
curl -k -d 'response_type=device_code&client_id=amzn1.application-oa2-client.b2b915e0eb90460aaf6ca1ec920bc16b&scope=alexa%3Aall&scope_data=%7B%22alexa%3Aall%22%3A%7B%22productID%22%3A%22LinuxPC%22,%22productInstanceAttributes%22%3A%7B%22deviceSerialNumber%22%3A%225CG8320G73%22%7D%7D%7D' -H "Content-Type:application/x-www-form-urlencoded" -X POST https://api.amazon.com/auth/O2/create/codepair
I got the output for the above command as:
{"user_code":"BK89Z6","device_code":"b2ac0031-ccaf-4200-8e53-51118fa5c0b9","interval":30,"verification_uri":"https://amazon.com/us/code","expires_in":600}
As per the Step 2:
I wrote the command as follows:
curl -k -d 'grant_type=device_code&device_code=b2ac0031-ccaf-4200-8e53-51118fa5c0b9&user_code=BK89Z6'-Hps://api.amazon.com/auth/O2/token
I am getting the error output as:
{"error_description":"The code pair is invalid. Please restart the code pair workflow","error":"invalid_code_pair"}
Please Help me out I have tried all possible things that I can do.