1

I am developing an application using 500 Amazon echo devices and I need a way to uniquely identify from which device the request came from. Is there a way to get a unique identifier of a device during the execution of the Java lambda function for my perticular skill.

MC Emperor
  • 22,334
  • 15
  • 80
  • 130

1 Answers1

1

Follow these steps

  1. Go to the Alexa Console -> Create/Edit Skill -> Permissions -> Enable necessary fields, preferably email in your case
  2. Get the requester email during request in fulfilment. Sample code below

Sample Python code

def get_user_info(access_token):
amazonProfileURL = 'https://api.amazon.com/user/profile?access_token='
r = requests.get(url=amazonProfileURL+access_token)
if r.status_code == 200:
    return r.json()
else:
    return False
omuthu
  • 5,948
  • 1
  • 27
  • 37