Have anyone here worked with the last_event method in the api ? I am receiving a strange response on my GET request.
Below is the request that I am sending, and the response that I am getting. Notice the "a7" and "0" symbols enclosing the json response.
The documentation for this method does not mention anything about the json response being enclosed by any characters at all. But if there were any characters I would have expected them to be "[" and "]" for conistensy with the events method.
Does anyone know anything about this ?
GET /feeds/<my feed>/last_event/?sense_key=<my key> HTTP/1.1
Host:
api.sen.seContent-Type: application/json
Content-Length: 0
Connection: Keep-Alive
HTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Mon, 18 Nov 2013 13:41:49 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Authorization
a7
{
"publish_id": "004eaee7478d026",
"value": "19.5",
"timetag": "2013-11-11T22:43:04+00:00",
"feed_id": 45930,
"id": 1444893406,
"unit": "°C"
}
0