POST https://api.intel.com/context/v1/items, doesn't like my JSON?

POST https://api.intel.com/context/v1/items, doesn't like my JSON?

When POSTing to https://api.intel.com/context/v1/items, I am getting weird errors.

If I set the Content-Type to application/json, I get Bad Request.  If not, I get "No JSON object could be decoded".

Other calls in the context API are working fine.

Multiple parsers tell me it's valid.  My JSON:

{
  "data": {
    "items": [
      {
        "contextType": "urn:x-intel:context:type:location:current",
        "value": {
          "latitude": 45.520082,
          "longitude": 122.676103
        }
      }
    ]
  }
}

4 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Are you using devteset or production client id/secret?

Production.

Hi,

your data is ok, I tried to send it and it worked fined in dev. environment.

Do you have the right permissions ? Have you not forgotten the authentication token ?

发表评论

登录添加评论。还不是成员?立即加入