Using the Alexa Custom skills, and AWS Lambda Functions, and Python 3.6, I want to be able to just get the user's name from their account. I already set up permissions and account linking and verified that it works using the alexa::profile:name:read permission. However, there are no resources available for python 3.6 methods for retrieving the actual user info.
There is this page which has the method I need to use (get_profile_name()): https://github.com/alexa/alexa-skills-kit-sdk-for-python/blob/master/docs/en/SERVICE_CLIENTS.rst#upsserviceclient
However, it does not give me info on how I can access that method inside a Lambda Function.
My main function runs from:
def lambda_handler(event, context):
Event only has the JSON from the user input from the custom Alexa skill, which does not include a name, so I'm stuck on how to access anything that has the get_profile_name()
The only example I can possibly find is from this:https://forums.developer.amazon.com/questions/181267/new-sdk-and-python-36-progressive-response-sample.html
But I cannot figure out how the handler_input is different from my "event"
I figured it would be simple to just get a name, but this is pretty complex. Has anyone done this before?