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?

Portrait de Glen P.

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 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Portrait de norman-chou (Intel)

Are you using devteset or production client id/secret?

Portrait de Glen P.

Production.

Portrait de Xavier H. (Intel)

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 ?

Connectez-vous pour laisser un commentaire.