utils module

utils.getAccessToken(echoMessage)[source]
Get Access Token of Alexa message
param echomessage:
 message sent to the lambda handler
utils.getCommandName(message)[source]
Get the command name in the json message sent to the lambda handler
param message:message sent to the lambda handler
utils.getCorrelationToken(message)[source]
Get the Correleation token for the of the Alexa message
param message:message sent to the lambda handler
utils.getEndpointID(echoMessage)[source]
Get the uniqe target endpoint ID of Alexa message so that it can be compared with database
param echomessage:
 message sent to the lambda handler
utils.getNameSpace(message)[source]
Return namespace of the command received
param message:message sent to the lambda handler
utils.getPayload(echoMessage)[source]
Get the paylod component of the message sent to lambda
param echomessage:
 message sent to the lambda handler
utils.getUtcTimeStamp(seconds=None)[source]
Used for returning current time for timestamp purpose in aws reply
param seconds=None:
 get current utc time
utils.getUuid()[source]

Get unique ID for message

utils.get_directive_version(request)[source]
Get the version directive to be either v2 or v3
param request:the request set to the hander