-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Progressive Responses #250
base: master
Are you sure you want to change the base?
Conversation
Implements the following API through the progressive_response function to be used in intent functions. https://developer.amazon.com/docs/custom-skills/send-the-user-a-progressive-response.html
Can someone look into this? I need to use. |
"""Causes Alexa to speak before your skill sends its full response.""" | ||
response = { | ||
"header":{ | ||
"requestId":"amzn1.echo-api.request.xxxxxxx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't hardcode request Id
flask_ask/models.py
Outdated
|
||
|
||
headers = {"Authorization":'Bearer '+authToken, "Content-Type":"application/json"} | ||
r = requests.post("https://api.amazonalexa.com/v1/directives", headers=headers, json=response) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This URL is region specific, for me this URL is not working,
This URL "https://api.eu.amazonalexa.com/v1/directives" is working for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It is no longer region specific.
flask_ask/models.py
Outdated
"speech":"This text is spoken while your skill processes the full response." | ||
} | ||
} | ||
response['header']['requestId'] = context.System.apiAccessToken |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assign request id not AccessToken
Adds and documents support for https://developer.amazon.com/docs/custom-skills/send-the-user-a-progressive-response.html.