Skill id is as follows : amzn1.ask.skill.fdda1a51-096e-49df-86da-84a6536e5354 data = ask.contextdatarequest= ask.requestapiAccessToken= 'Bearer '+ data["System"]["apiAccessToken"]requestid= datarequest["requestId"]API_URL=data["System"]["apiEndpoint"]+"/v1/directives"headers = { 'Authorization': apiAccessToken,'Content-Type': 'application/json',}body= { "header": { 'Authorization': apiAccessToken, or 'Content-Type': 'application/json',"requestId": requestid }, "directive" :{ "type": "VoicePlayer.
Speak", and "speech": "whats sup"}}print("this is portion of header and body")print(apiAccessToken)print(API_URL)print(headers)print(body)resp = requests.post(API_URL,headers=headers, json=jdata)print(resp)The response is this used to work, or i am not able to figure out what is erroneous with the above code.
Source: amazon.com