地址,县,州和城市键中的空值

问题描述 投票:0回答:1

日志:

    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' 
    }

通过配套应用程序授予权限,我获得了有效的同意令牌,apiEndpoint和deviceId

令牌:eyJ0eXAiOiJKV1QiLCJhXXX

Api Endpoint: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 alexa-skills-kit
1个回答
0
投票

我只获得邮政编码和国家/地区的原因与开发人员门户网站中的代码或任何设置无关,而是与echo dot本身无关。在我的回声点下的alexa应用程序中,给出的地址仅包含邮政编码和国家/地区

© www.soinside.com 2019 - 2024. All rights reserved.