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

publicaciones de 4 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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 ?

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya