Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

themooer1
Copy link

@themooer1 themooer1 commented Feb 7, 2019

@imsurinder90
Copy link

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"

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



headers = {"Authorization":'Bearer '+authToken, "Content-Type":"application/json"}
r = requests.post("https://api.amazonalexa.com/v1/directives", headers=headers, json=response)

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.

Copy link
Author

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.

"speech":"This text is spoken while your skill processes the full response."
}
}
response['header']['requestId'] = context.System.apiAccessToken

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

@themooer1 themooer1 closed this May 19, 2019
@themooer1 themooer1 reopened this May 19, 2019
Correct Request ID
US Alexa API endpoint no longer hardcoded.
Sends speech with response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants