当我在动作模拟器上测试我的应用程序时,我没有收到来自我的Oauth2.0的访问令牌。 (我的Oauth2.0在使用Google Oauth Playground进行测试时效果很好) 这是我在用户说“打开客厅灯”时收到的内容
Array
(
[user] => Array
(
[user_id] => 1500637544218
[permissions] => Array
(
)
[locale] => en-US
)
[conversation] => Array
(
[conversation_id] => 1500637544218
[type] => 1
)
[inputs] => Array
(
[0] => Array
(
[intent] => assistant.intent.action.MAIN
[raw_inputs] => Array
(
[0] => Array
(
[input_type] => 3
[query] => tell automate to turn on the living room lights
[annotation_sets] => Array
(
)
)
)
[arguments] => Array
(
[0] => Array
(
[name] => trigger_query
[raw_text] => turn on the living room lights
[text_value] => turn on the living room lights
)
)
)
)
[surface] => Array
(
[capabilities] => Array
(
[0] => Array
(
[name] => actions.capability.AUDIO_OUTPUT
)
[1] => Array
(
[name] => actions.capability.SCREEN_OUTPUT
)
)
)
[device] => Array
(
)
[is_in_sandbox] => 1
)
我认为为了获得访问令牌,我必须登录我的授权终点,但操作模拟器没有该选项,所以我在我的Andorid设备上下载了Google智能助理应用程序(同一帐户,开发)我去了家庭控制,我无法看到我的应用名称列出。但是,当我问助理时(通过我的手机这是)'对话,'它仍然返回" APP NAME现在没有回复,很快就会再试一次"
{
"accountLinking": {
"clientId": "", // SENSITIVE INFORMATION BLANK
"clientSecret": "", // SENSITIVE INFORMATION BLANK
"grantType": "AUTH_CODE",
"authenticationUrl": "", // SENSITIVE INFORMATION BLANK
"accessTokenUrl": "" // SENSITIVE INFORMATION BLANK
},
"actions": [{
"description": "",
"name": "MAIN",
"fulfillment": {
"conversationName": "PASS TEXT"
},
"intent": {
"name": "actions.intent.MAIN",
"trigger": {
"queryPatterns": [
"talk to APP NAME"
]
}
}
}],
"conversations": {
"PASS TEXT": {
"name": "PASS TEXT",
"url": "" // SENSITIVE INFORMATION BLANK
}
}
}
所以我的主要两个问题是,我如何解决"现在没有回复,很快就会再试一次#34;问题,我的履行终点如何获得访问权限?在测试过程中没有访问令牌,我无法进一步开发我的应用程序:(
希望你能帮助我!