HTTP Drop Read


Request


GET https://api.flowthings.io/v0.1/<account_id>/drop/<flowId>/<dropId>

NOTE: This will retrieve a single Drop from a Flow, to retrieve multiple Drops see HTTP Drop Find.

Headers

NameDescription
Content-Typeapplication/json
X-Auth-TokenAuthentication Token

Example

GET http://api.flowthings.io/v0.1/<account_id>/drop/f53c94e310cf2cc0ebb97e8a3/d53c988900cf2fba3c36426ca

Response


HTTP Codes

CodeDescription
200Request Successful
400Bad Request
401Unauthorized
503Service Unavailable

Example

{
  "head": {
    "status": 200,
    "ok": true,
    "messages": [],
    "errors": []
  },
  "body": {
    "id": "d540296740cf2ee54bcc4cf33",
    "flowId": "f540296740cf23301a89a5806",
    "creationDate": 1409455732680,
    "path": "/my_account_id/my_first_flow",
    "location": {
      "lat": 40.703285,
      "lon": -73.987852,
      "specifiers" : {}
    },
    "elems": {
      "error_rate": {
        "type": "float",
        "value": 0.15
      },
      "stats": {
        "type": "map",
        "value": {
          "temp": {
            "type": "float",
            "value": 30.4
          },
          "uptime": {
            "type": "float",
            "value": 1992343.4
          },
          "voltage": {
            "type": "float",
            "value": 15.4
          }
        }
      },
      "service_available": {
        "type": "boolean",
        "value": true
      },
      "status_codes": {
        "type": "sortedSet",
        "value": [
          {
            "type": "integer",
            "value": 75
          },
          {
            "type": "integer",
          "value": 90
          },
          {
            "type": "integer",
            "value": 100
          }
        ]
      },
      "name": {
        "type": "string",
        "value": "foo"
      }
    }
  }
}