here.com API 凭据失败

here.com API credentials failure

已解决 - 回答如下

我刚刚使用 here.com 注册了一个试用帐户,注册了一个应用程序,并尝试使用凭据。我之前对演示应用程序 ID 和凭据使用过完全相同的请求,但现在使用注册的试用帐户凭据失败了。有什么建议吗?凭据实际生效需要很长时间吗?

curl -X GET \
     -H 'Content-Type: *' \
     --get 'https://route.cit.api.here.com/routing/7.2/calculateroute.json' \
     --data-urlencode 'waypoint0=53.011766,-2.224905' \
     --data-urlencode 'waypoint1=53.028236,-2.198126' \
     --data-urlencode 'mode=fastest;car;traffic:enabled' \
     --data-urlencode 'app_id=<valid app id>' \
     --data-urlencode 'app_code=<valid app code>' \
     --data-urlencode 'departure=2016-09-10T13:54:29Z' | jsonpipe | less


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   528  100   528    0     0   2191      0 --:--:-- --:--:-- --:--:--  2200
/       {}  
/response       {}  
/response/_type "ns2:RoutingServiceErrorType"
/response/type  "SystemError"
/response/subtype       "SystemError"
/response/details       "These credentials do not authorize access. Please contact your customer representative or submit a request here https://developer.here.com/contact-us to upgrade your account. You can also get valid credentials by registering for a free trial license on https://developer.here.com."
/response/metaInfo      {}  
/response/metaInfo/timestamp    "2016-09-09T14:06:15Z"
/response/metaInfo/mapVersion   "8.30.63.156"
/response/metaInfo/moduleVersion        "7.2.72.0-55447"
/response/metaInfo/interfaceVersion     "2.6.25"

某处最终一致的数据库,大约一个小时后它开始工作。

我在尝试使用 invokerestapi activity 从 Tibco Rest 插件调用天气服务时遇到了这个问题。虽然我使用的是 app_id 和 app_code 从这里站点的项目设置生成的免费计划。当我使用同一站点的示例中提供的演示 app_id 和演示 app_code 时,这个问题得到了解决。