【发布时间】:2020-01-03 19:38:52
【问题描述】:
我正在尝试将 isp(在技能购买中)添加到我的 Alexa Skill。技能代码是用 python 编写的,在 Launch 请求处理程序中我编写了以下代码:
locale = handler_input.request_envelope.request.locale
monetization_service = handler_input.service_client_factory.get_monetization_service()
product_response = monetization_service.get_in_skill_products(locale)
if isinstance(product_response, InSkillProductsResponse):
in_skill_product_list = product_response.in_skill_products
self._logger.info(in_skill_product_list)
当我运行我的 lambda 时,虽然我收到以下错误:
Attempting to use service client factory with no configured API client
有没有人遇到过这个问题,让我知道它做错了什么?
【问题讨论】:
标签: python alexa alexa-skills-kit alexa-skill