Hi All! I am trying to run this code as suggested by a fellow amazon's employee.
from ask_sdk_model.interfaces.connections.send_request_directive import (SendRequestDirective)
if not (permissions and permissions.consent_token): logging.info("user hasn't granted reminder permissions") return ( rb .add_directive( SendRequestDirective( name="AskFor", payload={ "@type": "AskForPermissionsConsentRequest", "@version": "1", "permissionScope": "alexa::alerts:timers:skill:readwrite", }, token="" ) ) .response )
however, I am getting this error:
[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'add_directive'