Using the Alexa Custom skills, and AWS Lambda Functions, 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. 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
which uses
handler_input.service_client_factory.get_profile_name()
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?