地址、县、州和城市键中的空值
Null values in address, county, state and city keys
日志:
2018-03-06T16:45:22.452Z c24b7465-215d-11e8-aefd-bfbf7ac6d9a8
{
addressLine1: null,
addressLine2: null,
addressLine3: null,
districtOrCounty: null,
stateOrRegion: null,
city: null,
countryCode: 'US',
postalCode: '63101'
}
已通过配套应用授予权限,
我得到了有效的同意 Token、apiEndpoint 和 deviceId
令牌: eyJ0eXAiOiJKV1QiLCJhXXX
Api 端点: https://api.amazonalexa.com
设备 ID:amzn1.ask.device.AETPMACRXXX
我的代码:
const token = event.context.System.apiAccessToken
const apiEndpoint = event.context.System.apiEndpoint
const deviceId = event.context.System.device.deviceId
console.log(
`Token: ${token} \n
Api Endpoint: ${apiEndpoint}
Device ID: ${deviceId}`)
const deviceAddressService = new Alexa.services.DeviceAddressService()
const fullAddress = deviceAddressService.getFullAddress(deviceId,apiEndpoint,token).then(data => {
resolve(data)
})
.catch(err => {
reject(err.message)
})
})
Permission in Developer Portal enabled
我只得到邮政编码和国家代码...有什么想法吗?
我之所以只得到邮政编码和国家/地区,与代码或开发人员门户中的任何设置无关,而是与回声点本身有关。在我的回声点下的 alexa 应用程序中,给出的地址仅包含邮政编码和国家/地区
日志:
2018-03-06T16:45:22.452Z c24b7465-215d-11e8-aefd-bfbf7ac6d9a8
{
addressLine1: null,
addressLine2: null,
addressLine3: null,
districtOrCounty: null,
stateOrRegion: null,
city: null,
countryCode: 'US',
postalCode: '63101'
}
已通过配套应用授予权限, 我得到了有效的同意 Token、apiEndpoint 和 deviceId
令牌: eyJ0eXAiOiJKV1QiLCJhXXX
Api 端点: https://api.amazonalexa.com 设备 ID:amzn1.ask.device.AETPMACRXXX
我的代码:
const token = event.context.System.apiAccessToken
const apiEndpoint = event.context.System.apiEndpoint
const deviceId = event.context.System.device.deviceId
console.log(
`Token: ${token} \n
Api Endpoint: ${apiEndpoint}
Device ID: ${deviceId}`)
const deviceAddressService = new Alexa.services.DeviceAddressService()
const fullAddress = deviceAddressService.getFullAddress(deviceId,apiEndpoint,token).then(data => {
resolve(data)
})
.catch(err => {
reject(err.message)
})
})
Permission in Developer Portal enabled 我只得到邮政编码和国家代码...有什么想法吗?
我之所以只得到邮政编码和国家/地区,与代码或开发人员门户中的任何设置无关,而是与回声点本身有关。在我的回声点下的 alexa 应用程序中,给出的地址仅包含邮政编码和国家/地区